From 7841f33e170c3489d13e38307793ec9a974d17c2 Mon Sep 17 00:00:00 2001 From: Enda Phelan Date: Tue, 30 Nov 2021 10:11:42 +0000 Subject: [PATCH 1/4] refactor: refactor the package structure and layout --- CONTRIBUTING.md | 3 +- Makefile | 9 +- cmd/modular-docs/main.go | 5 +- cmd/rhoas/main.go | 22 +- internal/build/build.go | 7 +- {pkg => internal}/doc/cmd_test.go | 0 {pkg => internal}/doc/modular_adoc_docs.go | 4 +- {pkg => internal}/doc/modular_adoc_docs.md | 24 +- .../doc/modular_adoc_docs_test.go | 0 internal/{docs => doc}/modular_docs.go | 4 +- {pkg => internal}/doc/util.go | 0 internal/mockutil/mockutil.go | 29 +- {pkg => internal}/telemetry/sanitize.go | 0 {pkg => internal}/telemetry/segment.go | 0 {pkg => internal}/telemetry/telemetry.go | 2 +- {pkg => internal}/telemetry/user.go | 0 .../TermsAndConditionsSpec.go | 2 +- pkg/{ams => accountmgmtutil}/ams.go | 7 +- pkg/{ams => accountmgmtutil}/terms.go | 4 +- .../ams/amsclient/.openapi-generator/VERSION | 1 - pkg/api/api.go | 21 - pkg/api/srs/error.go | 122 - pkg/{api => apis}/ams/amsclient/.gitignore | 0 .../ams/amsclient/.openapi-generator-ignore | 0 .../ams/amsclient/.openapi-generator/FILES | 0 .../ams/amsclient/.openapi-generator/VERSION | 1 + pkg/{api => apis}/ams/amsclient/.travis.yml | 0 pkg/{api => apis}/ams/amsclient/README.md | 2 +- .../ams/amsclient/api/openapi.yaml | 0 .../ams/amsclient/api_default.go | 3988 ++++++++--------- pkg/{api => apis}/ams/amsclient/client.go | 27 +- .../ams/amsclient/configuration.go | 33 +- .../ams/amsclient/default_api_mock.go | 0 .../ams/amsclient/docs/AccessReview.md | 0 .../amsclient/docs/AccessReviewResponse.md | 0 .../ams/amsclient/docs/AccessTokenCfg.md | 0 .../ams/amsclient/docs/Account.md | 0 .../ams/amsclient/docs/AccountAllOf.md | 0 .../ams/amsclient/docs/AccountList.md | 0 .../ams/amsclient/docs/AccountListAllOf.md | 0 .../ams/amsclient/docs/AccountPatchRequest.md | 0 .../ams/amsclient/docs/AccountReference.md | 0 .../amsclient/docs/AccountReferenceAllOf.md | 0 .../ams/amsclient/docs/Capability.md | 0 .../ams/amsclient/docs/CapabilityAllOf.md | 0 .../ams/amsclient/docs/CapabilityReview.md | 0 .../amsclient/docs/CapabilityReviewRequest.md | 0 .../docs/ClusterAuthorizationRequest.md | 0 .../docs/ClusterAuthorizationResponse.md | 0 .../ams/amsclient/docs/ClusterMetricsNodes.md | 0 .../docs/ClusterRegistrationRequest.md | 0 .../docs/ClusterRegistrationResponse.md | 0 .../ams/amsclient/docs/ClusterResource.md | 0 .../amsclient/docs/ClusterResourceTotal.md | 0 .../ams/amsclient/docs/ClusterUpgrade.md | 0 .../ams/amsclient/docs/DefaultApi.md | 0 .../amsclient/docs/EphemeralResourceQuota.md | 0 pkg/{api => apis}/ams/amsclient/docs/Error.md | 0 .../ams/amsclient/docs/ErrorAllOf.md | 0 .../ams/amsclient/docs/ErrorList.md | 0 .../ams/amsclient/docs/ErrorListAllOf.md | 0 .../ams/amsclient/docs/ExcessResource.md | 0 .../ams/amsclient/docs/ExcessResourceAllOf.md | 0 .../ams/amsclient/docs/ExportControlReview.md | 0 .../docs/ExportControlReviewRequest.md | 0 .../ams/amsclient/docs/FeatureToggle.md | 0 .../ams/amsclient/docs/FeatureToggleAllOf.md | 0 .../docs/FeatureToggleQueryRequest.md | 0 .../docs/FeatureToggleQueryRequestAllOf.md | 0 pkg/{api => apis}/ams/amsclient/docs/Label.md | 0 .../ams/amsclient/docs/LabelAllOf.md | 0 .../ams/amsclient/docs/LabelList.md | 0 .../ams/amsclient/docs/LabelListAllOf.md | 0 pkg/{api => apis}/ams/amsclient/docs/List.md | 0 .../ams/amsclient/docs/Metric.md | 0 .../ams/amsclient/docs/MetricAllOf.md | 0 .../ams/amsclient/docs/MetricsList.md | 0 .../ams/amsclient/docs/MetricsListAllOf.md | 0 .../docs/NotificationContactCreateRequest.md | 0 .../ams/amsclient/docs/NotificationRequest.md | 0 .../ams/amsclient/docs/ObjectReference.md | 0 .../ams/amsclient/docs/OneMetric.md | 0 .../ams/amsclient/docs/Organization.md | 0 .../ams/amsclient/docs/OrganizationAllOf.md | 0 .../ams/amsclient/docs/OrganizationList.md | 0 .../amsclient/docs/OrganizationListAllOf.md | 0 .../docs/OrganizationPatchRequest.md | 0 .../ams/amsclient/docs/Permission.md | 0 .../ams/amsclient/docs/PermissionAllOf.md | 0 .../ams/amsclient/docs/PermissionList.md | 0 .../ams/amsclient/docs/PermissionListAllOf.md | 0 pkg/{api => apis}/ams/amsclient/docs/Plan.md | 0 .../ams/amsclient/docs/PlanAllOf.md | 0 .../ams/amsclient/docs/PlanList.md | 0 .../ams/amsclient/docs/PlanListAllOf.md | 0 .../ams/amsclient/docs/PullSecretRequest.md | 0 .../ams/amsclient/docs/QuotaCost.md | 0 .../ams/amsclient/docs/QuotaCostAllOf.md | 0 .../ams/amsclient/docs/QuotaCostList.md | 0 .../ams/amsclient/docs/QuotaCostListAllOf.md | 0 .../ams/amsclient/docs/QuotaSummary.md | 0 .../ams/amsclient/docs/QuotaSummaryAllOf.md | 0 .../ams/amsclient/docs/QuotaSummaryList.md | 0 .../amsclient/docs/QuotaSummaryListAllOf.md | 0 .../ams/amsclient/docs/Registry.md | 0 .../ams/amsclient/docs/RegistryAllOf.md | 0 .../amsclient/docs/RegistryCreateRequest.md | 0 .../ams/amsclient/docs/RegistryCredential.md | 0 .../amsclient/docs/RegistryCredentialAllOf.md | 0 .../amsclient/docs/RegistryCredentialList.md | 0 .../docs/RegistryCredentialListAllOf.md | 0 .../docs/RegistryCredentialPatchRequest.md | 0 .../ams/amsclient/docs/RegistryList.md | 0 .../ams/amsclient/docs/RegistryListAllOf.md | 0 .../ams/amsclient/docs/RegistryRequest.md | 0 .../ams/amsclient/docs/RelatedResource.md | 0 .../amsclient/docs/RelatedResourceAllOf.md | 0 .../ams/amsclient/docs/ReservedResource.md | 0 .../amsclient/docs/ReservedResourceAllOf.md | 0 .../amsclient/docs/ReservedResourceList.md | 0 .../docs/ReservedResourceListAllOf.md | 0 .../ams/amsclient/docs/ResourceQuota.md | 0 .../ams/amsclient/docs/ResourceQuotaAllOf.md | 0 .../ams/amsclient/docs/ResourceQuotaList.md | 0 .../amsclient/docs/ResourceQuotaListAllOf.md | 0 .../amsclient/docs/ResourceQuotaRequest.md | 0 .../ams/amsclient/docs/ResourceReview.md | 0 .../amsclient/docs/ResourceReviewRequest.md | 0 pkg/{api => apis}/ams/amsclient/docs/Role.md | 0 .../ams/amsclient/docs/RoleAllOf.md | 0 .../ams/amsclient/docs/RoleBinding.md | 0 .../ams/amsclient/docs/RoleBindingAllOf.md | 0 .../docs/RoleBindingCreateRequest.md | 0 .../ams/amsclient/docs/RoleBindingList.md | 0 .../amsclient/docs/RoleBindingListAllOf.md | 0 .../ams/amsclient/docs/RoleBindingRequest.md | 0 .../ams/amsclient/docs/RoleList.md | 0 .../ams/amsclient/docs/RoleListAllOf.md | 0 pkg/{api => apis}/ams/amsclient/docs/SKU.md | 0 .../ams/amsclient/docs/SKUAllOf.md | 0 .../ams/amsclient/docs/SelfAccessReview.md | 0 .../ams/amsclient/docs/SelfResourceReview.md | 0 .../docs/SelfResourceReviewRequest.md | 0 .../ams/amsclient/docs/SelfTermsReview.md | 0 .../ams/amsclient/docs/SkuList.md | 0 .../ams/amsclient/docs/SkuListAllOf.md | 0 .../ams/amsclient/docs/SkuRules.md | 0 .../ams/amsclient/docs/SkuRulesAllOf.md | 0 .../ams/amsclient/docs/SkuRulesList.md | 0 .../ams/amsclient/docs/SkuRulesListAllOf.md | 0 .../ams/amsclient/docs/Subscription.md | 0 .../ams/amsclient/docs/SubscriptionAllOf.md | 0 .../docs/SubscriptionCreateRequest.md | 0 .../ams/amsclient/docs/SubscriptionList.md | 0 .../amsclient/docs/SubscriptionListAllOf.md | 0 .../docs/SubscriptionPatchRequest.md | 0 .../ams/amsclient/docs/Summary.md | 0 .../ams/amsclient/docs/SummaryAllOf.md | 0 .../ams/amsclient/docs/SummaryMetrics.md | 0 .../ams/amsclient/docs/SummaryMetricsAllOf.md | 0 .../ams/amsclient/docs/SummaryVector.md | 0 .../ams/amsclient/docs/SummaryVectorAllOf.md | 0 .../docs/SupportCasesCreatedResponse.md | 0 .../ams/amsclient/docs/SupportCasesRequest.md | 0 .../ams/amsclient/docs/TemplateParameter.md | 0 .../ams/amsclient/docs/TermsReview.md | 0 .../ams/amsclient/docs/TermsReviewResponse.md | 0 .../docs/TokenAuthorizationRequest.md | 0 .../docs/TokenAuthorizationResponse.md | 0 pkg/{api => apis}/ams/amsclient/git_push.sh | 10 +- .../ams/amsclient/model_access_review.go | 34 +- .../amsclient/model_access_review_response.go | 28 +- .../ams/amsclient/model_access_token_cfg.go | 16 +- .../ams/amsclient/model_account.go | 50 +- .../ams/amsclient/model_account_all_of.go | 44 +- .../ams/amsclient/model_account_list.go | 32 +- .../amsclient/model_account_list_all_of.go | 14 +- .../amsclient/model_account_patch_request.go | 26 +- .../ams/amsclient/model_account_reference.go | 24 +- .../model_account_reference_all_of.go | 18 +- .../ams/amsclient/model_capability.go | 32 +- .../ams/amsclient/model_capability_all_of.go | 26 +- .../ams/amsclient/model_capability_review.go | 16 +- .../model_capability_review_request.go | 32 +- .../model_cluster_authorization_request.go | 46 +- .../model_cluster_authorization_response.go | 24 +- .../amsclient/model_cluster_metrics_nodes.go | 20 +- .../model_cluster_registration_request.go | 16 +- .../model_cluster_registration_response.go | 18 +- .../ams/amsclient/model_cluster_resource.go | 26 +- .../amsclient/model_cluster_resource_total.go | 20 +- .../ams/amsclient/model_cluster_upgrade.go | 20 +- .../model_ephemeral_resource_quota.go | 26 +- .../ams/amsclient/model_error.go | 24 +- .../ams/amsclient/model_error_all_of.go | 18 +- .../ams/amsclient/model_error_list.go | 32 +- .../ams/amsclient/model_error_list_all_of.go | 14 +- .../ams/amsclient/model_excess_resource.go | 32 +- .../amsclient/model_excess_resource_all_of.go | 26 +- .../amsclient/model_export_control_review.go | 16 +- .../model_export_control_review_request.go | 18 +- .../ams/amsclient/model_feature_toggle.go | 24 +- .../amsclient/model_feature_toggle_all_of.go | 16 +- .../model_feature_toggle_query_request.go | 16 +- ...del_feature_toggle_query_request_all_of.go | 16 +- .../ams/amsclient/model_label.go | 44 +- .../ams/amsclient/model_label_all_of.go | 38 +- .../ams/amsclient/model_label_list.go | 32 +- .../ams/amsclient/model_label_list_all_of.go | 14 +- pkg/{api => apis}/ams/amsclient/model_list.go | 30 +- .../ams/amsclient/model_metric.go | 26 +- .../ams/amsclient/model_metric_all_of.go | 22 +- .../ams/amsclient/model_metrics_list.go | 32 +- .../amsclient/model_metrics_list_all_of.go | 14 +- ...del_notification_contact_create_request.go | 14 +- .../amsclient/model_notification_request.go | 34 +- .../ams/amsclient/model_object_reference.go | 16 +- .../ams/amsclient/model_one_metric.go | 104 +- .../ams/amsclient/model_organization.go | 32 +- .../amsclient/model_organization_all_of.go | 26 +- .../ams/amsclient/model_organization_list.go | 32 +- .../model_organization_list_all_of.go | 14 +- .../model_organization_patch_request.go | 18 +- .../ams/amsclient/model_permission.go | 16 +- .../ams/amsclient/model_permission_all_of.go | 16 +- .../ams/amsclient/model_permission_list.go | 32 +- .../amsclient/model_permission_list_all_of.go | 14 +- pkg/{api => apis}/ams/amsclient/model_plan.go | 24 +- .../ams/amsclient/model_plan_all_of.go | 18 +- .../ams/amsclient/model_plan_list.go | 32 +- .../ams/amsclient/model_plan_list_all_of.go | 14 +- .../amsclient/model_pull_secret_request.go | 16 +- .../ams/amsclient/model_quota_cost.go | 34 +- .../ams/amsclient/model_quota_cost_all_of.go | 28 +- .../ams/amsclient/model_quota_cost_list.go | 32 +- .../amsclient/model_quota_cost_list_all_of.go | 14 +- .../ams/amsclient/model_quota_summary.go | 46 +- .../amsclient/model_quota_summary_all_of.go | 40 +- .../ams/amsclient/model_quota_summary_list.go | 32 +- .../model_quota_summary_list_all_of.go | 14 +- .../ams/amsclient/model_registry.go | 36 +- .../ams/amsclient/model_registry_all_of.go | 30 +- .../model_registry_create_request.go | 32 +- .../amsclient/model_registry_credential.go | 34 +- .../model_registry_credential_all_of.go | 28 +- .../model_registry_credential_list.go | 32 +- .../model_registry_credential_list_all_of.go | 14 +- ...model_registry_credential_patch_request.go | 22 +- .../ams/amsclient/model_registry_list.go | 32 +- .../amsclient/model_registry_list_all_of.go | 14 +- .../ams/amsclient/model_registry_request.go | 26 +- .../ams/amsclient/model_related_resource.go | 52 +- .../model_related_resource_all_of.go | 46 +- .../ams/amsclient/model_reserved_resource.go | 42 +- .../model_reserved_resource_all_of.go | 36 +- .../amsclient/model_reserved_resource_list.go | 32 +- .../model_reserved_resource_list_all_of.go | 14 +- .../ams/amsclient/model_resource_quota.go | 50 +- .../amsclient/model_resource_quota_all_of.go | 44 +- .../amsclient/model_resource_quota_list.go | 32 +- .../model_resource_quota_list_all_of.go | 14 +- .../amsclient/model_resource_quota_request.go | 24 +- .../ams/amsclient/model_resource_review.go | 38 +- .../model_resource_review_request.go | 18 +- pkg/{api => apis}/ams/amsclient/model_role.go | 22 +- .../ams/amsclient/model_role_all_of.go | 16 +- .../ams/amsclient/model_role_binding.go | 36 +- .../amsclient/model_role_binding_all_of.go | 30 +- .../model_role_binding_create_request.go | 28 +- .../ams/amsclient/model_role_binding_list.go | 32 +- .../model_role_binding_list_all_of.go | 14 +- .../amsclient/model_role_binding_request.go | 22 +- .../ams/amsclient/model_role_list.go | 32 +- .../ams/amsclient/model_role_list_all_of.go | 14 +- .../ams/amsclient/model_self_access_review.go | 26 +- .../amsclient/model_self_resource_review.go | 34 +- .../model_self_resource_review_request.go | 16 +- .../ams/amsclient/model_self_terms_review.go | 16 +- pkg/{api => apis}/ams/amsclient/model_sku.go | 32 +- .../ams/amsclient/model_sku_all_of.go | 28 +- .../ams/amsclient/model_sku_list.go | 34 +- .../ams/amsclient/model_sku_list_all_of.go | 14 +- .../ams/amsclient/model_sku_rules.go | 24 +- .../ams/amsclient/model_sku_rules_all_of.go | 18 +- .../ams/amsclient/model_sku_rules_list.go | 32 +- .../amsclient/model_sku_rules_list_all_of.go | 14 +- .../ams/amsclient/model_subscription.go | 82 +- .../amsclient/model_subscription_all_of.go | 76 +- .../model_subscription_create_request.go | 28 +- .../ams/amsclient/model_subscription_list.go | 32 +- .../model_subscription_list_all_of.go | 14 +- .../model_subscription_patch_request.go | 62 +- .../ams/amsclient/model_summary.go | 24 +- .../ams/amsclient/model_summary_all_of.go | 18 +- .../ams/amsclient/model_summary_metrics.go | 16 +- .../amsclient/model_summary_metrics_all_of.go | 16 +- .../ams/amsclient/model_summary_vector.go | 18 +- .../amsclient/model_summary_vector_all_of.go | 18 +- .../model_support_cases_created_response.go | 30 +- .../amsclient/model_support_cases_request.go | 44 +- .../ams/amsclient/model_template_parameter.go | 20 +- .../ams/amsclient/model_terms_review.go | 22 +- .../amsclient/model_terms_review_response.go | 32 +- .../model_token_authorization_request.go | 14 +- .../model_token_authorization_response.go | 14 +- pkg/{api => apis}/ams/amsclient/response.go | 16 +- pkg/{api => apis}/ams/amsclient/utils.go | 12 +- pkg/apis/apis.go | 3 + pkg/{api => apis}/rbac/api.go | 0 pkg/{api => apis}/rbac/rbacutil/api_util.go | 2 +- pkg/auth/login/login.go | 12 +- pkg/auth/login/mas_sso_redirect_handler.go | 9 +- pkg/auth/login/sso_redirect_handler.go | 16 +- pkg/auth/login/static/sso-redirect-page.html | 28 +- pkg/auth/token/token.go | 3 +- pkg/cmd/cluster/bind/bind.go | 21 +- pkg/cmd/cluster/clean/clean.go | 20 +- pkg/cmd/cluster/cluster.go | 2 +- pkg/cmd/cluster/connect/connect.go | 21 +- pkg/cmd/cluster/status/status.go | 23 +- pkg/cmd/completion/bash/bash.go | 2 +- pkg/cmd/completion/completion.go | 2 +- pkg/cmd/completion/fish/fish.go | 2 +- pkg/cmd/completion/zsh/zsh.go | 2 +- pkg/cmd/docs/docs.go | 7 +- pkg/cmd/flag/validation.go | 16 - pkg/cmd/kafka/acl/acl.go | 2 +- pkg/cmd/kafka/acl/admin/admin.go | 22 +- pkg/cmd/kafka/acl/create/create.go | 24 +- pkg/cmd/kafka/acl/delete/delete.go | 26 +- pkg/cmd/kafka/acl/flagutil/flagset.go | 10 +- pkg/cmd/kafka/acl/grant/grant.go | 22 +- pkg/cmd/kafka/acl/list/list.go | 22 +- pkg/cmd/kafka/consumergroup/consumergroup.go | 2 +- pkg/cmd/kafka/consumergroup/delete/delete.go | 18 +- .../kafka/consumergroup/describe/describe.go | 34 +- pkg/cmd/kafka/consumergroup/list/list.go | 32 +- .../consumergroup/resetoffset/reset_offset.go | 31 +- pkg/cmd/kafka/create/create.go | 85 +- pkg/cmd/kafka/delete/delete.go | 33 +- pkg/cmd/kafka/describe/describe.go | 31 +- pkg/cmd/kafka/flagutil/flagutil.go | 4 +- pkg/cmd/kafka/kafka.go | 9 +- pkg/cmd/kafka/list/list.go | 39 +- pkg/cmd/kafka/topic/create/create.go | 27 +- pkg/cmd/kafka/topic/delete/delete.go | 19 +- pkg/cmd/kafka/topic/describe/describe.go | 26 +- pkg/cmd/kafka/topic/list/list.go | 27 +- pkg/cmd/kafka/topic/topic.go | 5 +- pkg/cmd/kafka/topic/update/update.go | 27 +- pkg/cmd/kafka/update/update.go | 48 +- pkg/cmd/kafka/use/use.go | 29 +- pkg/cmd/login/login.go | 29 +- pkg/cmd/logout/logout.go | 14 +- pkg/cmd/logout/logout_test.go | 22 +- pkg/cmd/registry/artifact/artifacts.go | 4 +- .../registry/artifact/crud/create/create.go | 35 +- .../registry/artifact/crud/delete/delete.go | 31 +- pkg/cmd/registry/artifact/crud/get/get.go | 25 +- pkg/cmd/registry/artifact/crud/list/list.go | 30 +- .../registry/artifact/crud/update/update.go | 18 +- .../registry/artifact/download/download.go | 25 +- pkg/cmd/registry/artifact/metadata/get.go | 33 +- pkg/cmd/registry/artifact/metadata/set.go | 30 +- pkg/cmd/registry/artifact/migrate/export.go | 20 +- pkg/cmd/registry/artifact/migrate/import.go | 20 +- pkg/cmd/registry/artifact/role/add/add.go | 28 +- pkg/cmd/registry/artifact/role/list/list.go | 28 +- .../registry/artifact/role/revoke/revoke.go | 22 +- pkg/cmd/registry/artifact/role/role.go | 2 +- pkg/cmd/registry/artifact/state/state.go | 21 +- .../registry/artifact/versions/versions.go | 28 +- pkg/cmd/registry/create/create.go | 38 +- pkg/cmd/registry/delete/delete.go | 27 +- pkg/cmd/registry/describe/describe.go | 25 +- pkg/cmd/registry/list/list.go | 24 +- pkg/cmd/registry/registry.go | 5 +- pkg/cmd/registry/use/use.go | 22 +- pkg/cmd/root/root.go | 19 +- pkg/cmd/root/validator_test.go | 8 +- pkg/cmd/serviceaccount/create/create.go | 31 +- pkg/cmd/serviceaccount/delete/delete.go | 24 +- pkg/cmd/serviceaccount/describe/describe.go | 20 +- pkg/cmd/serviceaccount/list/list.go | 21 +- .../resetcredentials/reset_credentials.go | 32 +- pkg/cmd/serviceaccount/serviceaccount.go | 2 +- pkg/cmd/status/status.go | 23 +- pkg/cmd/version/version.go | 9 +- pkg/cmd/whoami/whoami.go | 14 +- pkg/connection/keycloak_connection.go | 413 -- pkg/{ => core}/cluster/bind.go | 13 +- pkg/{ => core}/cluster/clean.go | 10 +- pkg/{ => core}/cluster/cluster.go | 2 +- pkg/{ => core}/cluster/cluster_api.go | 8 +- pkg/{ => core}/cluster/connect.go | 18 +- pkg/{ => core}/cluster/constants/constants.go | 0 .../cluster/kubeclient/kube_helpers.go | 2 +- .../cluster/kubeclient/kubeclients.go | 2 +- .../cluster/services/custom_connection.go | 0 pkg/{ => core}/cluster/services/kafka.go | 18 +- .../services/resources/KafkaConnection.go | 0 .../resources/ServiceRegistryConnection.go | 0 .../cluster/services/resources/definitions.go | 2 +- .../cluster/services/service-registry.go | 18 +- pkg/{ => core}/cluster/status.go | 4 +- pkg/{ => core}/cluster/v1alpha/cluster.go | 11 +- pkg/{ => core/cmdutil}/browser/open.go | 0 pkg/{ => core}/cmdutil/cmdutil.go | 0 pkg/{ => core}/cmdutil/constants.go | 0 .../factory/defaultfactory}/default.go | 23 +- pkg/{cmd => core/cmdutil}/factory/factory.go | 10 +- .../cmdutil/flagutil}/arguments.go | 2 +- .../cmdutil/flagutil/completions.go | 14 +- .../flag => core/cmdutil/flagutil}/flag.go | 2 +- pkg/{ => core}/cmdutil/flagutil/flagset.go | 8 +- pkg/{ => core}/cmdutil/flagutil/tribool.go | 0 pkg/{ => core}/cmdutil/flagutil/util.go | 3 +- pkg/core/cmdutil/flagutil/validation.go | 12 + pkg/{ => core/cmdutil}/profile/profile.go | 0 {internal => pkg/core}/config/config_mock.go | 74 +- {internal => pkg/core}/config/file.go | 0 {internal => pkg/core}/config/type.go | 0 pkg/core/connection/api/api.go | 20 + .../api/defaultapi/default_client.go | 278 ++ pkg/{ => core}/connection/connection.go | 5 +- pkg/{ => core}/connection/connection_mock.go | 51 +- .../connection/kcconnection}/builder.go | 70 +- .../connection/kcconnection}/errors.go | 4 +- .../kcconnection/keycloak_connection.go | 154 + .../connection/kcconnection}/keycloak_util.go | 2 +- .../kcconnection}/keycloak_util_test.go | 2 +- .../commonerr.go => core/errors/errors.go} | 3 +- pkg/{ => core}/httputil/httputil.go | 4 +- pkg/{ => core/ioutil}/color/color.go | 0 pkg/{ => core/ioutil}/dump/dump.go | 3 +- pkg/{ => core/ioutil}/editor/editor.go | 0 pkg/{ => core/ioutil}/editor/linux.go | 0 pkg/{ => core/ioutil}/editor/windows.go | 1 + pkg/{ => core/ioutil}/icon/icon.go | 3 +- pkg/{ => core/ioutil}/iostreams/iostreams.go | 0 pkg/{ => core}/ioutil/spinner/spinner.go | 2 +- pkg/{ => core}/localize/goi18n/go_i18n.go | 4 +- .../localize/goi18n/go_i18n_test.go | 2 +- .../localize/locales/en/auth_token.en.toml | 0 .../localize/locales/en/browser.en.toml | 0 .../localize/locales/en/cmd/acl.en.toml | 0 .../localize/locales/en/cmd/artifact.en.toml | 0 .../localize/locales/en/cmd/cluster.en.toml | 0 .../localize/locales/en/cmd/common.en.toml | 0 .../locales/en/cmd/completion.en.toml | 0 .../localize/locales/en/cmd/flags.en.toml | 0 .../localize/locales/en/cmd/kafka.en.toml | 0 .../cmd/kafka_consumergroup_reset_offset.toml | 0 .../locales/en/cmd/kafka_update.en.toml | 0 .../localize/locales/en/cmd/login.en.toml | 0 .../localize/locales/en/cmd/logout.en.toml | 0 .../localize/locales/en/cmd/main.en.toml | 0 .../locales/en/cmd/registry_crud.en.toml | 0 .../localize/locales/en/cmd/role.toml | 0 .../localize/locales/en/cmd/root.en.en.toml | 0 .../locales/en/cmd/serviceaccount.en.toml | 0 .../en/cmd/serviceaccount_create.en.toml | 0 .../en/cmd/serviceaccount_delete.en.toml | 0 .../en/cmd/serviceaccount_describe.en.toml | 0 .../en/cmd/serviceaccount_list.en.toml | 0 .../serviceaccount_reset_credentials.en.toml | 0 .../localize/locales/en/cmd/status.en.toml | 0 .../localize/locales/en/cmd/topic.en.toml | 0 .../localize/locales/en/cmd/version.en.toml | 0 .../localize/locales/en/cmd/whoami.en.toml | 0 .../localize/locales/en/common.en.toml | 0 .../localize/locales/en/connection.en.toml | 0 .../locales/en/keycloak_connection.en.toml | 0 .../localize/locales/en/profile.en.toml | 0 .../localize/locales/en/service.crud.en.toml | 0 pkg/{ => core}/localize/localize.go | 0 pkg/{ => core}/logging/logger.go | 0 pkg/{ => core}/logging/std_logger.go | 0 .../status/instanceStatus.go} | 4 +- pkg/{ => core}/status/status.go | 27 +- pkg/kafka/kafkaerr/error.go | 44 - pkg/{kafka => kafkautil}/aclutil/acl_table.go | 3 +- pkg/{kafka => kafkautil}/aclutil/constants.go | 0 pkg/{kafka => kafkautil}/aclutil/enums.go | 0 .../aclutil/enums_test.go | 0 pkg/{kafka => kafkautil}/aclutil/util.go | 13 +- pkg/{kafka => kafkautil}/api.go | 10 +- .../consumergrouputil}/util.go | 2 +- .../consumergrouputil}/validators.go | 9 +- .../consumergrouputil}/validators_test.go | 4 +- pkg/{api/kas => kafkautil}/error.go | 41 +- pkg/{kafka => kafkautil}/interactive.go | 11 +- pkg/{kafka => kafkautil}/kafka_util.go | 21 +- pkg/{kafka => kafkautil}/kafka_util_test.go | 5 +- .../topic => kafkautil/topicutil}/util.go | 5 +- .../topicutil}/util_test.go | 2 +- .../topicutil}/validators.go | 20 +- .../topicutil}/validators_test.go | 4 +- pkg/{kafka/cmdutil => kafkautil}/util.go | 19 +- .../credentials/credentials.go | 3 +- .../validation/validation.go | 9 +- .../validation/validation_test.go | 2 +- .../api.go | 2 +- .../error.go | 12 +- .../interactive.go | 7 +- .../registry_util.go | 8 +- 506 files changed, 5596 insertions(+), 5657 deletions(-) rename {pkg => internal}/doc/cmd_test.go (100%) rename {pkg => internal}/doc/modular_adoc_docs.go (99%) rename {pkg => internal}/doc/modular_adoc_docs.md (81%) rename {pkg => internal}/doc/modular_adoc_docs_test.go (100%) rename internal/{docs => doc}/modular_docs.go (97%) rename {pkg => internal}/doc/util.go (100%) rename {pkg => internal}/telemetry/sanitize.go (100%) rename {pkg => internal}/telemetry/segment.go (100%) rename {pkg => internal}/telemetry/telemetry.go (97%) rename {pkg => internal}/telemetry/user.go (100%) rename pkg/{ams => accountmgmtutil}/TermsAndConditionsSpec.go (91%) rename pkg/{ams => accountmgmtutil}/ams.go (81%) rename pkg/{ams => accountmgmtutil}/terms.go (95%) delete mode 100644 pkg/api/ams/amsclient/.openapi-generator/VERSION delete mode 100644 pkg/api/api.go delete mode 100644 pkg/api/srs/error.go rename pkg/{api => apis}/ams/amsclient/.gitignore (100%) rename pkg/{api => apis}/ams/amsclient/.openapi-generator-ignore (100%) rename pkg/{api => apis}/ams/amsclient/.openapi-generator/FILES (100%) create mode 100644 pkg/apis/ams/amsclient/.openapi-generator/VERSION rename pkg/{api => apis}/ams/amsclient/.travis.yml (100%) rename pkg/{api => apis}/ams/amsclient/README.md (99%) rename pkg/{api => apis}/ams/amsclient/api/openapi.yaml (100%) rename pkg/{api => apis}/ams/amsclient/api_default.go (81%) rename pkg/{api => apis}/ams/amsclient/client.go (97%) rename pkg/{api => apis}/ams/amsclient/configuration.go (93%) rename pkg/{api => apis}/ams/amsclient/default_api_mock.go (100%) rename pkg/{api => apis}/ams/amsclient/docs/AccessReview.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/AccessReviewResponse.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/AccessTokenCfg.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/Account.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/AccountAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/AccountList.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/AccountListAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/AccountPatchRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/AccountReference.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/AccountReferenceAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/Capability.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/CapabilityAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/CapabilityReview.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/CapabilityReviewRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ClusterAuthorizationRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ClusterAuthorizationResponse.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ClusterMetricsNodes.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ClusterRegistrationRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ClusterRegistrationResponse.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ClusterResource.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ClusterResourceTotal.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ClusterUpgrade.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/DefaultApi.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/EphemeralResourceQuota.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/Error.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ErrorAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ErrorList.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ErrorListAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ExcessResource.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ExcessResourceAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ExportControlReview.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ExportControlReviewRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/FeatureToggle.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/FeatureToggleAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/FeatureToggleQueryRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/FeatureToggleQueryRequestAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/Label.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/LabelAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/LabelList.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/LabelListAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/List.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/Metric.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/MetricAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/MetricsList.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/MetricsListAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/NotificationContactCreateRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/NotificationRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ObjectReference.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/OneMetric.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/Organization.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/OrganizationAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/OrganizationList.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/OrganizationListAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/OrganizationPatchRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/Permission.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/PermissionAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/PermissionList.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/PermissionListAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/Plan.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/PlanAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/PlanList.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/PlanListAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/PullSecretRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/QuotaCost.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/QuotaCostAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/QuotaCostList.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/QuotaCostListAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/QuotaSummary.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/QuotaSummaryAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/QuotaSummaryList.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/QuotaSummaryListAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/Registry.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RegistryAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RegistryCreateRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RegistryCredential.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RegistryCredentialAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RegistryCredentialList.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RegistryCredentialListAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RegistryCredentialPatchRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RegistryList.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RegistryListAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RegistryRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RelatedResource.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RelatedResourceAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ReservedResource.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ReservedResourceAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ReservedResourceList.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ReservedResourceListAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ResourceQuota.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ResourceQuotaAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ResourceQuotaList.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ResourceQuotaListAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ResourceQuotaRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ResourceReview.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/ResourceReviewRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/Role.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RoleAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RoleBinding.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RoleBindingAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RoleBindingCreateRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RoleBindingList.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RoleBindingListAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RoleBindingRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RoleList.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/RoleListAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SKU.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SKUAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SelfAccessReview.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SelfResourceReview.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SelfResourceReviewRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SelfTermsReview.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SkuList.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SkuListAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SkuRules.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SkuRulesAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SkuRulesList.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SkuRulesListAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/Subscription.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SubscriptionAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SubscriptionCreateRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SubscriptionList.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SubscriptionListAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SubscriptionPatchRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/Summary.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SummaryAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SummaryMetrics.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SummaryMetricsAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SummaryVector.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SummaryVectorAllOf.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SupportCasesCreatedResponse.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/SupportCasesRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/TemplateParameter.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/TermsReview.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/TermsReviewResponse.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/TokenAuthorizationRequest.md (100%) rename pkg/{api => apis}/ams/amsclient/docs/TokenAuthorizationResponse.md (100%) rename pkg/{api => apis}/ams/amsclient/git_push.sh (85%) rename pkg/{api => apis}/ams/amsclient/model_access_review.go (93%) rename pkg/{api => apis}/ams/amsclient/model_access_review_response.go (95%) rename pkg/{api => apis}/ams/amsclient/model_access_token_cfg.go (95%) rename pkg/{api => apis}/ams/amsclient/model_account.go (93%) rename pkg/{api => apis}/ams/amsclient/model_account_all_of.go (93%) rename pkg/{api => apis}/ams/amsclient/model_account_list.go (93%) rename pkg/{api => apis}/ams/amsclient/model_account_list_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_account_patch_request.go (95%) rename pkg/{api => apis}/ams/amsclient/model_account_reference.go (95%) rename pkg/{api => apis}/ams/amsclient/model_account_reference_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_capability.go (93%) rename pkg/{api => apis}/ams/amsclient/model_capability_all_of.go (93%) rename pkg/{api => apis}/ams/amsclient/model_capability_review.go (95%) rename pkg/{api => apis}/ams/amsclient/model_capability_review_request.go (93%) rename pkg/{api => apis}/ams/amsclient/model_cluster_authorization_request.go (93%) rename pkg/{api => apis}/ams/amsclient/model_cluster_authorization_response.go (94%) rename pkg/{api => apis}/ams/amsclient/model_cluster_metrics_nodes.go (95%) rename pkg/{api => apis}/ams/amsclient/model_cluster_registration_request.go (96%) rename pkg/{api => apis}/ams/amsclient/model_cluster_registration_response.go (96%) rename pkg/{api => apis}/ams/amsclient/model_cluster_resource.go (92%) rename pkg/{api => apis}/ams/amsclient/model_cluster_resource_total.go (94%) rename pkg/{api => apis}/ams/amsclient/model_cluster_upgrade.go (95%) rename pkg/{api => apis}/ams/amsclient/model_ephemeral_resource_quota.go (95%) rename pkg/{api => apis}/ams/amsclient/model_error.go (95%) rename pkg/{api => apis}/ams/amsclient/model_error_all_of.go (95%) rename pkg/{api => apis}/ams/amsclient/model_error_list.go (93%) rename pkg/{api => apis}/ams/amsclient/model_error_list_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_excess_resource.go (94%) rename pkg/{api => apis}/ams/amsclient/model_excess_resource_all_of.go (94%) rename pkg/{api => apis}/ams/amsclient/model_export_control_review.go (95%) rename pkg/{api => apis}/ams/amsclient/model_export_control_review_request.go (95%) rename pkg/{api => apis}/ams/amsclient/model_feature_toggle.go (94%) rename pkg/{api => apis}/ams/amsclient/model_feature_toggle_all_of.go (95%) rename pkg/{api => apis}/ams/amsclient/model_feature_toggle_query_request.go (95%) rename pkg/{api => apis}/ams/amsclient/model_feature_toggle_query_request_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_label.go (93%) rename pkg/{api => apis}/ams/amsclient/model_label_all_of.go (93%) rename pkg/{api => apis}/ams/amsclient/model_label_list.go (93%) rename pkg/{api => apis}/ams/amsclient/model_label_list_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_list.go (92%) rename pkg/{api => apis}/ams/amsclient/model_metric.go (94%) rename pkg/{api => apis}/ams/amsclient/model_metric_all_of.go (95%) rename pkg/{api => apis}/ams/amsclient/model_metrics_list.go (93%) rename pkg/{api => apis}/ams/amsclient/model_metrics_list_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_notification_contact_create_request.go (97%) rename pkg/{api => apis}/ams/amsclient/model_notification_request.go (92%) rename pkg/{api => apis}/ams/amsclient/model_object_reference.go (96%) rename pkg/{api => apis}/ams/amsclient/model_one_metric.go (89%) rename pkg/{api => apis}/ams/amsclient/model_organization.go (94%) rename pkg/{api => apis}/ams/amsclient/model_organization_all_of.go (94%) rename pkg/{api => apis}/ams/amsclient/model_organization_list.go (93%) rename pkg/{api => apis}/ams/amsclient/model_organization_list_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_organization_patch_request.go (96%) rename pkg/{api => apis}/ams/amsclient/model_permission.go (95%) rename pkg/{api => apis}/ams/amsclient/model_permission_all_of.go (95%) rename pkg/{api => apis}/ams/amsclient/model_permission_list.go (93%) rename pkg/{api => apis}/ams/amsclient/model_permission_list_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_plan.go (95%) rename pkg/{api => apis}/ams/amsclient/model_plan_all_of.go (95%) rename pkg/{api => apis}/ams/amsclient/model_plan_list.go (93%) rename pkg/{api => apis}/ams/amsclient/model_plan_list_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_pull_secret_request.go (95%) rename pkg/{api => apis}/ams/amsclient/model_quota_cost.go (93%) rename pkg/{api => apis}/ams/amsclient/model_quota_cost_all_of.go (93%) rename pkg/{api => apis}/ams/amsclient/model_quota_cost_list.go (93%) rename pkg/{api => apis}/ams/amsclient/model_quota_cost_list_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_quota_summary.go (92%) rename pkg/{api => apis}/ams/amsclient/model_quota_summary_all_of.go (92%) rename pkg/{api => apis}/ams/amsclient/model_quota_summary_list.go (93%) rename pkg/{api => apis}/ams/amsclient/model_quota_summary_list_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_registry.go (94%) rename pkg/{api => apis}/ams/amsclient/model_registry_all_of.go (94%) rename pkg/{api => apis}/ams/amsclient/model_registry_create_request.go (94%) rename pkg/{api => apis}/ams/amsclient/model_registry_credential.go (93%) rename pkg/{api => apis}/ams/amsclient/model_registry_credential_all_of.go (93%) rename pkg/{api => apis}/ams/amsclient/model_registry_credential_list.go (93%) rename pkg/{api => apis}/ams/amsclient/model_registry_credential_list_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_registry_credential_patch_request.go (95%) rename pkg/{api => apis}/ams/amsclient/model_registry_list.go (93%) rename pkg/{api => apis}/ams/amsclient/model_registry_list_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_registry_request.go (94%) rename pkg/{api => apis}/ams/amsclient/model_related_resource.go (92%) rename pkg/{api => apis}/ams/amsclient/model_related_resource_all_of.go (92%) rename pkg/{api => apis}/ams/amsclient/model_reserved_resource.go (93%) rename pkg/{api => apis}/ams/amsclient/model_reserved_resource_all_of.go (93%) rename pkg/{api => apis}/ams/amsclient/model_reserved_resource_list.go (93%) rename pkg/{api => apis}/ams/amsclient/model_reserved_resource_list_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_resource_quota.go (92%) rename pkg/{api => apis}/ams/amsclient/model_resource_quota_all_of.go (93%) rename pkg/{api => apis}/ams/amsclient/model_resource_quota_list.go (93%) rename pkg/{api => apis}/ams/amsclient/model_resource_quota_list_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_resource_quota_request.go (94%) rename pkg/{api => apis}/ams/amsclient/model_resource_review.go (93%) rename pkg/{api => apis}/ams/amsclient/model_resource_review_request.go (95%) rename pkg/{api => apis}/ams/amsclient/model_role.go (94%) rename pkg/{api => apis}/ams/amsclient/model_role_all_of.go (95%) rename pkg/{api => apis}/ams/amsclient/model_role_binding.go (93%) rename pkg/{api => apis}/ams/amsclient/model_role_binding_all_of.go (94%) rename pkg/{api => apis}/ams/amsclient/model_role_binding_create_request.go (95%) rename pkg/{api => apis}/ams/amsclient/model_role_binding_list.go (93%) rename pkg/{api => apis}/ams/amsclient/model_role_binding_list_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_role_binding_request.go (96%) rename pkg/{api => apis}/ams/amsclient/model_role_list.go (93%) rename pkg/{api => apis}/ams/amsclient/model_role_list_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_self_access_review.go (95%) rename pkg/{api => apis}/ams/amsclient/model_self_resource_review.go (93%) rename pkg/{api => apis}/ams/amsclient/model_self_resource_review_request.go (96%) rename pkg/{api => apis}/ams/amsclient/model_self_terms_review.go (95%) rename pkg/{api => apis}/ams/amsclient/model_sku.go (91%) rename pkg/{api => apis}/ams/amsclient/model_sku_all_of.go (92%) rename pkg/{api => apis}/ams/amsclient/model_sku_list.go (92%) rename pkg/{api => apis}/ams/amsclient/model_sku_list_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_sku_rules.go (95%) rename pkg/{api => apis}/ams/amsclient/model_sku_rules_all_of.go (95%) rename pkg/{api => apis}/ams/amsclient/model_sku_rules_list.go (93%) rename pkg/{api => apis}/ams/amsclient/model_sku_rules_list_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_subscription.go (94%) rename pkg/{api => apis}/ams/amsclient/model_subscription_all_of.go (94%) rename pkg/{api => apis}/ams/amsclient/model_subscription_create_request.go (94%) rename pkg/{api => apis}/ams/amsclient/model_subscription_list.go (93%) rename pkg/{api => apis}/ams/amsclient/model_subscription_list_all_of.go (96%) rename pkg/{api => apis}/ams/amsclient/model_subscription_patch_request.go (94%) rename pkg/{api => apis}/ams/amsclient/model_summary.go (94%) rename pkg/{api => apis}/ams/amsclient/model_summary_all_of.go (94%) rename pkg/{api => apis}/ams/amsclient/model_summary_metrics.go (95%) rename pkg/{api => apis}/ams/amsclient/model_summary_metrics_all_of.go (95%) rename pkg/{api => apis}/ams/amsclient/model_summary_vector.go (94%) rename pkg/{api => apis}/ams/amsclient/model_summary_vector_all_of.go (94%) rename pkg/{api => apis}/ams/amsclient/model_support_cases_created_response.go (95%) rename pkg/{api => apis}/ams/amsclient/model_support_cases_request.go (94%) rename pkg/{api => apis}/ams/amsclient/model_template_parameter.go (94%) rename pkg/{api => apis}/ams/amsclient/model_terms_review.go (93%) rename pkg/{api => apis}/ams/amsclient/model_terms_review_response.go (93%) rename pkg/{api => apis}/ams/amsclient/model_token_authorization_request.go (96%) rename pkg/{api => apis}/ams/amsclient/model_token_authorization_response.go (96%) rename pkg/{api => apis}/ams/amsclient/response.go (88%) rename pkg/{api => apis}/ams/amsclient/utils.go (98%) create mode 100644 pkg/apis/apis.go rename pkg/{api => apis}/rbac/api.go (100%) rename pkg/{api => apis}/rbac/rbacutil/api_util.go (93%) delete mode 100644 pkg/cmd/flag/validation.go delete mode 100644 pkg/connection/keycloak_connection.go rename pkg/{ => core}/cluster/bind.go (93%) rename pkg/{ => core}/cluster/clean.go (86%) rename pkg/{ => core}/cluster/cluster.go (98%) rename pkg/{ => core}/cluster/cluster_api.go (81%) rename pkg/{ => core}/cluster/connect.go (94%) rename pkg/{ => core}/cluster/constants/constants.go (100%) rename pkg/{ => core}/cluster/kubeclient/kube_helpers.go (92%) rename pkg/{ => core}/cluster/kubeclient/kubeclients.go (97%) rename pkg/{ => core}/cluster/services/custom_connection.go (100%) rename pkg/{ => core}/cluster/services/kafka.go (73%) rename pkg/{ => core}/cluster/services/resources/KafkaConnection.go (100%) rename pkg/{ => core}/cluster/services/resources/ServiceRegistryConnection.go (100%) rename pkg/{ => core}/cluster/services/resources/definitions.go (92%) rename pkg/{ => core}/cluster/services/service-registry.go (76%) rename pkg/{ => core}/cluster/status.go (90%) rename pkg/{ => core}/cluster/v1alpha/cluster.go (82%) rename pkg/{ => core/cmdutil}/browser/open.go (100%) rename pkg/{ => core}/cmdutil/cmdutil.go (100%) rename pkg/{ => core}/cmdutil/constants.go (100%) rename pkg/{cmd/factory => core/cmdutil/factory/defaultfactory}/default.go (75%) rename pkg/{cmd => core/cmdutil}/factory/factory.go (67%) rename pkg/{arguments => core/cmdutil/flagutil}/arguments.go (94%) rename pkg/{ => core}/cmdutil/flagutil/completions.go (88%) rename pkg/{cmd/flag => core/cmdutil/flagutil}/flag.go (98%) rename pkg/{ => core}/cmdutil/flagutil/flagset.go (93%) rename pkg/{ => core}/cmdutil/flagutil/tribool.go (100%) rename pkg/{ => core}/cmdutil/flagutil/util.go (93%) create mode 100644 pkg/core/cmdutil/flagutil/validation.go rename pkg/{ => core/cmdutil}/profile/profile.go (100%) rename {internal => pkg/core}/config/config_mock.go (75%) rename {internal => pkg/core}/config/file.go (100%) rename {internal => pkg/core}/config/type.go (100%) create mode 100644 pkg/core/connection/api/api.go create mode 100644 pkg/core/connection/api/defaultapi/default_client.go rename pkg/{ => core}/connection/connection.go (91%) rename pkg/{ => core}/connection/connection_mock.go (77%) rename pkg/{connection => core/connection/kcconnection}/builder.go (73%) rename pkg/{connection => core/connection/kcconnection}/errors.go (91%) create mode 100644 pkg/core/connection/kcconnection/keycloak_connection.go rename pkg/{connection => core/connection/kcconnection}/keycloak_util.go (97%) rename pkg/{connection => core/connection/kcconnection}/keycloak_util_test.go (98%) rename pkg/{common/commonerr/commonerr.go => core/errors/errors.go} (66%) rename pkg/{ => core}/httputil/httputil.go (92%) rename pkg/{ => core/ioutil}/color/color.go (100%) rename pkg/{ => core/ioutil}/dump/dump.go (98%) rename pkg/{ => core/ioutil}/editor/editor.go (100%) rename pkg/{ => core/ioutil}/editor/linux.go (100%) rename pkg/{ => core/ioutil}/editor/windows.go (86%) rename pkg/{ => core/ioutil}/icon/icon.go (94%) rename pkg/{ => core/ioutil}/iostreams/iostreams.go (100%) rename pkg/{ => core}/ioutil/spinner/spinner.go (93%) rename pkg/{ => core}/localize/goi18n/go_i18n.go (96%) rename pkg/{ => core}/localize/goi18n/go_i18n_test.go (97%) rename pkg/{ => core}/localize/locales/en/auth_token.en.toml (100%) rename pkg/{ => core}/localize/locales/en/browser.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/acl.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/artifact.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/cluster.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/common.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/completion.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/flags.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/kafka.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/kafka_consumergroup_reset_offset.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/kafka_update.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/login.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/logout.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/main.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/registry_crud.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/role.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/root.en.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/serviceaccount.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/serviceaccount_create.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/serviceaccount_delete.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/serviceaccount_describe.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/serviceaccount_list.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/serviceaccount_reset_credentials.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/status.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/topic.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/version.en.toml (100%) rename pkg/{ => core}/localize/locales/en/cmd/whoami.en.toml (100%) rename pkg/{ => core}/localize/locales/en/common.en.toml (100%) rename pkg/{ => core}/localize/locales/en/connection.en.toml (100%) rename pkg/{ => core}/localize/locales/en/keycloak_connection.en.toml (100%) rename pkg/{ => core}/localize/locales/en/profile.en.toml (100%) rename pkg/{ => core}/localize/locales/en/service.crud.en.toml (100%) rename pkg/{ => core}/localize/localize.go (100%) rename pkg/{ => core}/logging/logger.go (100%) rename pkg/{ => core}/logging/std_logger.go (100%) rename pkg/{service/status/status.go => core/status/instanceStatus.go} (80%) rename pkg/{ => core}/status/status.go (90%) delete mode 100644 pkg/kafka/kafkaerr/error.go rename pkg/{kafka => kafkautil}/aclutil/acl_table.go (97%) rename pkg/{kafka => kafkautil}/aclutil/constants.go (100%) rename pkg/{kafka => kafkautil}/aclutil/enums.go (100%) rename pkg/{kafka => kafkautil}/aclutil/enums_test.go (100%) rename pkg/{kafka => kafkautil}/aclutil/util.go (91%) rename pkg/{kafka => kafkautil}/api.go (74%) rename pkg/{kafka/consumergroup => kafkautil/consumergrouputil}/util.go (97%) rename pkg/{kafka/consumergroup => kafkautil/consumergrouputil}/validators.go (81%) rename pkg/{kafka/consumergroup => kafkautil/consumergrouputil}/validators_test.go (97%) rename pkg/{api/kas => kafkautil}/error.go (51%) rename pkg/{kafka => kafkautil}/interactive.go (78%) rename pkg/{kafka => kafkautil}/kafka_util.go (83%) rename pkg/{kafka => kafkautil}/kafka_util_test.go (98%) rename pkg/{kafka/topic => kafkautil/topicutil}/util.go (95%) rename pkg/{kafka/topic => kafkautil/topicutil}/util_test.go (98%) rename pkg/{kafka/topic => kafkautil/topicutil}/validators.go (89%) rename pkg/{kafka/topic => kafkautil/topicutil}/validators_test.go (98%) rename pkg/{kafka/cmdutil => kafkautil}/util.go (90%) rename pkg/{serviceaccount => serviceaccountutil}/credentials/credentials.go (98%) rename pkg/{serviceaccount => serviceaccountutil}/validation/validation.go (87%) rename pkg/{serviceaccount => serviceaccountutil}/validation/validation_test.go (97%) rename pkg/{serviceregistry => serviceregistryutil}/api.go (97%) rename pkg/{serviceregistry/registryinstanceerror => serviceregistryutil}/error.go (63%) rename pkg/{serviceregistry => serviceregistryutil}/interactive.go (87%) rename pkg/{serviceregistry => serviceregistryutil}/registry_util.go (64%) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9e3967ff4..b590377cd 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -26,11 +26,10 @@ go run ./cmd/rhoas kafka create "test" --provider=aws --region=us-east-1 To use QA environment we need to login using following arguments -``` +```shell rhoas login --api-gateway=stage --mas-auth-url=stage ``` - ### Development features To enable development and early access commands please set environment variable in your terminal: diff --git a/Makefile b/Makefile index a9c22f3a1..20d777d99 100644 --- a/Makefile +++ b/Makefile @@ -33,15 +33,14 @@ endif # The details of the application: binary:=rhoas -amsapi_dir=./pkg/api/ams/amsclient -rbacapi_dir=./pkg/api/rbac/rbacclient +amsapi_dir=./pkg/apis/ams/amsclient # Enable Go modules: export GO111MODULE=on # Requires golangci-lint to be installed @ $(go env GOPATH)/bin/golangci-lint # https://golangci-lint.run/usage/install/ -lint: ## Lint Go files for errors +lint: lint-lang ## Lint Go files for errors golangci-lint run cmd/... pkg/... internal/... generate: ## Scan code for generate comments and run generators @@ -58,7 +57,7 @@ install: ## Compile and install rhoas and add it to the PAth .PHONY: install test: ## Run unit tests - go test ./pkg/... + go test ./pkg/... ./internal/... .PHONY: test generate-ams-sdk: ## Generate the Account Management Service SDK @@ -94,7 +93,7 @@ generate-modular-docs: generate-docs ## Generate modular command-line reference lint-lang: ## Lint i18n files go install github.com/redhat-developer/app-services-go-linter/cmd/app-services-go-linter@latest - app-services-go-linter ./... + app-services-go-linter -path ./pkg/core/localize/locales ./... .PHONY: lint-lang # Check http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html diff --git a/cmd/modular-docs/main.go b/cmd/modular-docs/main.go index 17c2843e6..d6d63f968 100644 --- a/cmd/modular-docs/main.go +++ b/cmd/modular-docs/main.go @@ -2,13 +2,12 @@ package main import ( "fmt" + "github.com/redhat-developer/app-services-cli/internal/doc" "os" - - "github.com/redhat-developer/app-services-cli/internal/docs" ) func main() { - err := docs.CreateModularDocs() + err := doc.CreateModularDocs() if err != nil { fmt.Print(err.Error()) os.Exit(1) diff --git a/cmd/rhoas/main.go b/cmd/rhoas/main.go index 669f8fe2c..0149523d8 100644 --- a/cmd/rhoas/main.go +++ b/cmd/rhoas/main.go @@ -3,22 +3,22 @@ package main import ( "context" "fmt" + "github.com/redhat-developer/app-services-cli/pkg/cmd/debug" + "github.com/redhat-developer/app-services-cli/pkg/cmd/root" "os" "strings" - "github.com/redhat-developer/app-services-cli/pkg/icon" + "github.com/redhat-developer/app-services-cli/internal/telemetry" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory/defaultfactory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/localize/goi18n" + "github.com/spf13/cobra" "github.com/redhat-developer/app-services-cli/internal/build" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/localize/goi18n" - "github.com/redhat-developer/app-services-cli/pkg/telemetry" - - "github.com/redhat-developer/app-services-cli/internal/config" - - "github.com/redhat-developer/app-services-cli/pkg/cmd/debug" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/root" ) func main() { @@ -29,7 +29,7 @@ func main() { } buildVersion := build.Version - cmdFactory := factory.New(localizer) + cmdFactory := defaultfactory.New(localizer) err = initConfig(cmdFactory) if err != nil { diff --git a/internal/build/build.go b/internal/build/build.go index a2a38a735..e8446ce6b 100644 --- a/internal/build/build.go +++ b/internal/build/build.go @@ -6,10 +6,11 @@ import ( "strings" "time" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/color" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/google/go-github/v39/github" - "github.com/redhat-developer/app-services-cli/pkg/color" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" ) type buildSource string diff --git a/pkg/doc/cmd_test.go b/internal/doc/cmd_test.go similarity index 100% rename from pkg/doc/cmd_test.go rename to internal/doc/cmd_test.go diff --git a/pkg/doc/modular_adoc_docs.go b/internal/doc/modular_adoc_docs.go similarity index 99% rename from pkg/doc/modular_adoc_docs.go rename to internal/doc/modular_adoc_docs.go index 1d0a2e477..162f0b165 100644 --- a/pkg/doc/modular_adoc_docs.go +++ b/internal/doc/modular_adoc_docs.go @@ -1,4 +1,3 @@ -// Copyright 2015 Red Hat Inc. All rights reserved. // Copyright 2021 Red Hat Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -17,7 +16,6 @@ package doc import ( "bytes" "fmt" - "github.com/spf13/pflag" "io" "os" "path/filepath" @@ -26,6 +24,8 @@ import ( "text/template" "time" + "github.com/spf13/pflag" + "github.com/spf13/cobra" ) diff --git a/pkg/doc/modular_adoc_docs.md b/internal/doc/modular_adoc_docs.md similarity index 81% rename from pkg/doc/modular_adoc_docs.md rename to internal/doc/modular_adoc_docs.md index c98eb47dc..6b416afba 100644 --- a/pkg/doc/modular_adoc_docs.md +++ b/internal/doc/modular_adoc_docs.md @@ -1,4 +1,4 @@ -``# Generating AsciiDoc Docs For Your Own cobra.Command +# Generating AsciiDoc Docs For Your Own cobra.Command Generating AsciiDoc pages from a cobra command is incredibly easy. An example is as follows: @@ -34,8 +34,8 @@ This program can actually generate docs for the kubectl command in the kubernete package main import ( - "log" "io/ioutil" + "log" "os" "k8s.io/kubernetes/pkg/kubectl/cmd" @@ -57,14 +57,15 @@ This will generate a whole series of files, one for each command in the tree, in ## Generate AsciiDoc docs for a single command -You may wish to have more control over the output, or only generate for a single command, instead of the entire command tree. If this is the case you may prefer to `GenAsciidoc` instead of `GenAsciidocTree` +You may wish to have more control over the output, or only generate for a single command, instead of the entire command +tree. If this is the case you may prefer to `GenAsciidoc` instead of `GenAsciidocTree` ```go - out := new(bytes.Buffer) - err := doc.GenAsciidoc(cmd, out) - if err != nil { - log.Fatal(err) - } +out := new(bytes.Buffer) +err := doc.GenAsciidoc(cmd, out) +if err != nil { + log.Fatal(err) +} ``` This will write the AsciiDoc doc for ONLY "cmd" into the out, buffer. @@ -74,18 +75,19 @@ This will write the AsciiDoc doc for ONLY "cmd" into the out, buffer. Both `GenAsciidoc` and `GenAsciidocTree` have alternate versions with callbacks to get some control of the output: ```go -func GenAsciidocTreeCustom(cmd *Command, dir string, filePrepender, linkHandler func(string) string) error { +func GenAsciidocTreeCustom(cmd *Command, dir string, filePrepender, linkHandler func (string) string) error { //... } ``` ```go -func GenAsciidocCustom(cmd *Command, out *bytes.Buffer, linkHandler func(string) string) error { +func GenAsciidocCustom(cmd *Command, out *bytes.Buffer, linkHandler func (string) string) error { //... } ``` -The `filePrepender` will prepend the return value given the full filepath to the rendered Asciidoc file. A common use case is to add front matter to use the generated documentation with [Hugo](http://gohugo.io/): +The `filePrepender` will prepend the return value given the full filepath to the rendered Asciidoc file. A common use +case is to add front matter to use the generated documentation with [Hugo](http://gohugo.io/): ```go const fmTemplate = `--- diff --git a/pkg/doc/modular_adoc_docs_test.go b/internal/doc/modular_adoc_docs_test.go similarity index 100% rename from pkg/doc/modular_adoc_docs_test.go rename to internal/doc/modular_adoc_docs_test.go diff --git a/internal/docs/modular_docs.go b/internal/doc/modular_docs.go similarity index 97% rename from internal/docs/modular_docs.go rename to internal/doc/modular_docs.go index ffeb3edc7..12c460270 100644 --- a/internal/docs/modular_docs.go +++ b/internal/doc/modular_docs.go @@ -1,4 +1,4 @@ -package docs +package doc import ( "fmt" @@ -13,7 +13,7 @@ import ( "github.com/pkg/errors" ) -// Create Modular Documentation from the CLI generated docs +// CreateModularDocs Create Modular Documentation from the CLI generated docs func CreateModularDocs() error { srcDir := os.Getenv("SRC_DIR") if srcDir == "" { diff --git a/pkg/doc/util.go b/internal/doc/util.go similarity index 100% rename from pkg/doc/util.go rename to internal/doc/util.go diff --git a/internal/mockutil/mockutil.go b/internal/mockutil/mockutil.go index 522fcd00b..19fc0a2a7 100644 --- a/internal/mockutil/mockutil.go +++ b/internal/mockutil/mockutil.go @@ -4,11 +4,12 @@ import ( "context" "errors" - kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/connection/api" + "github.com/redhat-developer/app-services-cli/pkg/core/connection/kcconnection" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/api" - "github.com/redhat-developer/app-services-cli/pkg/connection" + kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" ) func NewConfigMock(cfg *config.Config) config.IConfig { @@ -30,7 +31,7 @@ func NewConfigMock(cfg *config.Config) config.IConfig { } } -func NewConnectionMock(conn *connection.KeycloakConnection, apiClient *kafkamgmtclient.APIClient) connection.Connection { +func NewConnectionMock(conn *kcconnection.Connection, apiClient *kafkamgmtclient.APIClient) connection.Connection { return &connection.ConnectionMock{ RefreshTokensFunc: func(ctx context.Context) error { if conn.Token.AccessToken == "" && conn.Token.RefreshToken == "" { @@ -62,22 +63,8 @@ func NewConnectionMock(conn *connection.KeycloakConnection, apiClient *kafkamgmt return conn.Config.Save(cfg) }, - APIFunc: func() *api.API { - a := &api.API{ - Kafka: func() kafkamgmtclient.DefaultApi { - return apiClient.DefaultApi - }, - } - - return a + APIFunc: func() api.API { + return nil }, } } - -func NewKafkaRequestTypeMock(name string) kafkamgmtclient.KafkaRequest { - var kafkaReq kafkamgmtclient.KafkaRequest - kafkaReq.SetId("1") - kafkaReq.SetName(name) - - return kafkaReq -} diff --git a/pkg/telemetry/sanitize.go b/internal/telemetry/sanitize.go similarity index 100% rename from pkg/telemetry/sanitize.go rename to internal/telemetry/sanitize.go diff --git a/pkg/telemetry/segment.go b/internal/telemetry/segment.go similarity index 100% rename from pkg/telemetry/segment.go rename to internal/telemetry/segment.go diff --git a/pkg/telemetry/telemetry.go b/internal/telemetry/telemetry.go similarity index 97% rename from pkg/telemetry/telemetry.go rename to internal/telemetry/telemetry.go index 87add9516..ba291c0d7 100644 --- a/pkg/telemetry/telemetry.go +++ b/internal/telemetry/telemetry.go @@ -1,6 +1,7 @@ package telemetry import ( + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" "os" "runtime" "strconv" @@ -8,7 +9,6 @@ import ( "github.com/AlecAivazis/survey/v2" "github.com/redhat-developer/app-services-cli/internal/build" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" ) // Telemetry structure diff --git a/pkg/telemetry/user.go b/internal/telemetry/user.go similarity index 100% rename from pkg/telemetry/user.go rename to internal/telemetry/user.go diff --git a/pkg/ams/TermsAndConditionsSpec.go b/pkg/accountmgmtutil/TermsAndConditionsSpec.go similarity index 91% rename from pkg/ams/TermsAndConditionsSpec.go rename to pkg/accountmgmtutil/TermsAndConditionsSpec.go index 02408c92d..23e9fafcd 100644 --- a/pkg/ams/TermsAndConditionsSpec.go +++ b/pkg/accountmgmtutil/TermsAndConditionsSpec.go @@ -1,4 +1,4 @@ -package ams +package accountmgmtutil type TermsAndConditionsSpec struct { Kafka ServiceTermsSpec `json:"kafka"` diff --git a/pkg/ams/ams.go b/pkg/accountmgmtutil/ams.go similarity index 81% rename from pkg/ams/ams.go rename to pkg/accountmgmtutil/ams.go index b293e829c..2f5e86353 100644 --- a/pkg/ams/ams.go +++ b/pkg/accountmgmtutil/ams.go @@ -1,11 +1,12 @@ -package ams +package accountmgmtutil import ( "context" "errors" - "github.com/redhat-developer/app-services-cli/pkg/api/ams/amsclient" - "github.com/redhat-developer/app-services-cli/pkg/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + + "github.com/redhat-developer/app-services-cli/pkg/apis/ams/amsclient" ) func CheckTermsAccepted(ctx context.Context, spec ServiceTermsSpec, conn connection.Connection) (accepted bool, redirectURI string, err error) { diff --git a/pkg/ams/terms.go b/pkg/accountmgmtutil/terms.go similarity index 95% rename from pkg/ams/terms.go rename to pkg/accountmgmtutil/terms.go index cbf93ff1e..2714190c6 100644 --- a/pkg/ams/terms.go +++ b/pkg/accountmgmtutil/terms.go @@ -1,13 +1,13 @@ -package ams +package accountmgmtutil import ( "context" "encoding/json" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" "io/ioutil" "net/http" "github.com/redhat-developer/app-services-cli/internal/build" - "github.com/redhat-developer/app-services-cli/pkg/logging" ) // Contains specification for terms and condition parameters diff --git a/pkg/api/ams/amsclient/.openapi-generator/VERSION b/pkg/api/ams/amsclient/.openapi-generator/VERSION deleted file mode 100644 index acf69b48b..000000000 --- a/pkg/api/ams/amsclient/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -5.1.0 \ No newline at end of file diff --git a/pkg/api/api.go b/pkg/api/api.go deleted file mode 100644 index 83a863297..000000000 --- a/pkg/api/api.go +++ /dev/null @@ -1,21 +0,0 @@ -package api - -import ( - "github.com/redhat-developer/app-services-cli/pkg/api/ams/amsclient" - "github.com/redhat-developer/app-services-cli/pkg/api/rbac" - kafkainstanceclient "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal/client" - kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" - registryinstanceclient "github.com/redhat-developer/app-services-sdk-go/registryinstance/apiv1internal/client" - registrymgmtclient "github.com/redhat-developer/app-services-sdk-go/registrymgmt/apiv1/client" -) - -// API is a type which defines a number of API creator functions -type API struct { - Kafka func() kafkamgmtclient.DefaultApi - ServiceAccount func() kafkamgmtclient.SecurityApi - KafkaAdmin func(kafkaID string) (*kafkainstanceclient.APIClient, *kafkamgmtclient.KafkaRequest, error) - ServiceRegistryInstance func(registryID string) (*registryinstanceclient.APIClient, *registrymgmtclient.Registry, error) - AccountMgmt func() amsclient.DefaultApi - RBAC rbac.RbacAPI - ServiceRegistryMgmt func() registrymgmtclient.RegistriesApi -} diff --git a/pkg/api/srs/error.go b/pkg/api/srs/error.go deleted file mode 100644 index 982658fa5..000000000 --- a/pkg/api/srs/error.go +++ /dev/null @@ -1,122 +0,0 @@ -package srs - -import ( - "errors" - "fmt" - - registrymgmtclient "github.com/redhat-developer/app-services-sdk-go/registrymgmt/apiv1/client" -) - -type ServiceErrorCode int - -const ( - ErrCodePrefix = "SRS-MGMT" - - // Forbidden occurs when a user is not allowed to access the service - ErrorForbidden ServiceErrorCode = 4 - - // Forbidden occurs when a user or organization has reached maximum number of allowed instances - ErrorMaxAllowedInstanceReached ServiceErrorCode = 5 - - // Conflict occurs when a database constraint is violated - ErrorConflict ServiceErrorCode = 6 - - // NotFound occurs when a record is not found in the database - ErrorNotFound ServiceErrorCode = 7 - - // Validation occurs when an object fails validation - ErrorValidation ServiceErrorCode = 8 - - // General occurs when an error fails to match any other error code - ErrorGeneral ServiceErrorCode = 9 - - // NotImplemented occurs when an API REST method is not implemented in a handler - ErrorNotImplemented ServiceErrorCode = 10 - - // Unauthorized occurs when the requester is not authorized to perform the specified action - ErrorUnauthorized ServiceErrorCode = 11 - - // Unauthenticated occurs when the provided credentials cannot be validated - ErrorUnauthenticated ServiceErrorCode = 15 - - // MalformedRequest occurs when the request body cannot be read - ErrorMalformedRequest ServiceErrorCode = 17 - - // Bad Request - ErrorBadRequest ServiceErrorCode = 21 - - // Invalid Search Query - ErrorFailedToParseSearch ServiceErrorCode = 23 - - // Failed to create service account - ErrorFailedToCreateServiceAccount ServiceErrorCode = 110 - - // Failed to get service account - ErrorFailedToGetServiceAccount ServiceErrorCode = 111 - - // Failed to delete service account - ErrorFailedToDeleteServiceAccount ServiceErrorCode = 112 - - // Provider not supported - ErrorProviderNotSupported ServiceErrorCode = 30 - - // Region not supported - ErrorRegionNotSupported ServiceErrorCode = 31 - - // Invalid registry name - ErrorMalformedName ServiceErrorCode = 32 - - // Minimum field length validation - ErrorMinimumFieldLength ServiceErrorCode = 33 - - // Maximum field length validation - ErrorMaximumFieldLength ServiceErrorCode = 34 - - // Only MultiAZ is supported - ErrorOnlyMultiAZSupported ServiceErrorCode = 35 - - // registry name must be unique - ErrorDuplicateName ServiceErrorCode = 36 - - // Failure to send an error response (i.e. unable to send error response as the error can't be converted to JSON.) - ErrorUnableToSendErrorResponse ServiceErrorCode = 1000 -) - -type Error struct { - Err error -} - -func (e *Error) Error() string { - return fmt.Sprint(e.Err) -} - -func (e *Error) Unwrap() error { - return e.Err -} - -// GetAPIError gets a strongly typed error from an error -func GetAPIError(err error) (e registrymgmtclient.Error, ok bool) { - var apiError registrymgmtclient.GenericOpenAPIError - - if ok = errors.As(err, &apiError); ok { - errModel := apiError.Model() - - e, ok = errModel.(registrymgmtclient.Error) - } - - return e, ok -} - -// IsErr returns true if the error contains the errCode -func IsErr(err error, errCode ServiceErrorCode) bool { - mappedErr, ok := GetAPIError(err) - if !ok { - return false - } - - return mappedErr.GetCode() == getCode(errCode) -} - -func getCode(code ServiceErrorCode) string { - return fmt.Sprintf("%v-%v", ErrCodePrefix, code) -} diff --git a/pkg/api/ams/amsclient/.gitignore b/pkg/apis/ams/amsclient/.gitignore similarity index 100% rename from pkg/api/ams/amsclient/.gitignore rename to pkg/apis/ams/amsclient/.gitignore diff --git a/pkg/api/ams/amsclient/.openapi-generator-ignore b/pkg/apis/ams/amsclient/.openapi-generator-ignore similarity index 100% rename from pkg/api/ams/amsclient/.openapi-generator-ignore rename to pkg/apis/ams/amsclient/.openapi-generator-ignore diff --git a/pkg/api/ams/amsclient/.openapi-generator/FILES b/pkg/apis/ams/amsclient/.openapi-generator/FILES similarity index 100% rename from pkg/api/ams/amsclient/.openapi-generator/FILES rename to pkg/apis/ams/amsclient/.openapi-generator/FILES diff --git a/pkg/apis/ams/amsclient/.openapi-generator/VERSION b/pkg/apis/ams/amsclient/.openapi-generator/VERSION new file mode 100644 index 000000000..e230c8396 --- /dev/null +++ b/pkg/apis/ams/amsclient/.openapi-generator/VERSION @@ -0,0 +1 @@ +5.3.0 \ No newline at end of file diff --git a/pkg/api/ams/amsclient/.travis.yml b/pkg/apis/ams/amsclient/.travis.yml similarity index 100% rename from pkg/api/ams/amsclient/.travis.yml rename to pkg/apis/ams/amsclient/.travis.yml diff --git a/pkg/api/ams/amsclient/README.md b/pkg/apis/ams/amsclient/README.md similarity index 99% rename from pkg/api/ams/amsclient/README.md rename to pkg/apis/ams/amsclient/README.md index dc62aa28e..29fefc4be 100644 --- a/pkg/api/ams/amsclient/README.md +++ b/pkg/apis/ams/amsclient/README.md @@ -58,7 +58,7 @@ Note, enum values are always validated and all unused variables are silently ign ### 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. +An operation is uniquely identified 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. ``` diff --git a/pkg/api/ams/amsclient/api/openapi.yaml b/pkg/apis/ams/amsclient/api/openapi.yaml similarity index 100% rename from pkg/api/ams/amsclient/api/openapi.yaml rename to pkg/apis/ams/amsclient/api/openapi.yaml diff --git a/pkg/api/ams/amsclient/api_default.go b/pkg/apis/ams/amsclient/api_default.go similarity index 81% rename from pkg/api/ams/amsclient/api_default.go rename to pkg/apis/ams/amsclient/api_default.go index 52cb175e4..c29082ed3 100644 --- a/pkg/api/ams/amsclient/api_default.go +++ b/pkg/apis/ams/amsclient/api_default.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -27,1201 +27,1117 @@ var ( type DefaultApi 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 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 executes the request + // @return AccessTokenCfg ApiAccountsMgmtV1AccessTokenPostExecute(r ApiApiAccountsMgmtV1AccessTokenPostRequest) (AccessTokenCfg, *_nethttp.Response, error) /* - * 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 executes the request + // @return Account ApiAccountsMgmtV1AccountsPostExecute(r ApiApiAccountsMgmtV1AccountsPostRequest) (Account, *_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 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 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 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 executes the request + // @return ClusterRegistrationResponse ApiAccountsMgmtV1ClusterRegistrationsPostExecute(r ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest) (ClusterRegistrationResponse, *_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 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 executes the request + // @return Account ApiAccountsMgmtV1CurrentAccountGetExecute(r ApiApiAccountsMgmtV1CurrentAccountGetRequest) (Account, *_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 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 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 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 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 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 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 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 executes the request + // @return LabelList ApiAccountsMgmtV1LabelsGetExecute(r ApiApiAccountsMgmtV1LabelsGetRequest) (LabelList, *_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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 executes the request + // @return Summary ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest) (Summary, *_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 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 executes the request + // @return QuotaCostList ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) (QuotaCostList, *_nethttp.Response, error) /* - * ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet Returns a summary of 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 ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest - */ + ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet Returns a summary of 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 ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest + + Deprecated + */ ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest - /* - * ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecute executes the request - * @return QuotaSummaryList - */ + // ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecute executes the request + // @return QuotaSummaryList + // Deprecated ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest) (QuotaSummaryList, *_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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 executes the request + // @return AccessTokenCfg ApiAccountsMgmtV1PullSecretsPostExecute(r ApiApiAccountsMgmtV1PullSecretsPostRequest) (AccessTokenCfg, *_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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 executes the request + // @return Role ApiAccountsMgmtV1RolesIdGetExecute(r ApiApiAccountsMgmtV1RolesIdGetRequest) (Role, *_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 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 executes the request + // @return SkuRulesList ApiAccountsMgmtV1SkuRulesGetExecute(r ApiApiAccountsMgmtV1SkuRulesGetRequest) (SkuRulesList, *_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 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 executes the request + // @return SkuRules ApiAccountsMgmtV1SkuRulesIdGetExecute(r ApiApiAccountsMgmtV1SkuRulesIdGetRequest) (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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 executes the request + // @return Label ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest) (Label, *_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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 executes the request + // @return Account ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest) (Account, *_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 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 executes the request + // @return ReservedResource ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest) (ReservedResource, *_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 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 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 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 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 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 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 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 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 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 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 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 executes the request + // @return ExportControlReview ApiAuthorizationsV1ExportControlReviewPostExecute(r ApiApiAuthorizationsV1ExportControlReviewPostRequest) (ExportControlReview, *_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 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 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 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 executes the request + // @return AccessReviewResponse ApiAuthorizationsV1SelfAccessReviewPostExecute(r ApiApiAuthorizationsV1SelfAccessReviewPostRequest) (AccessReviewResponse, *_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 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 executes the request + // @return SelfResourceReview ApiAuthorizationsV1SelfResourceReviewPostExecute(r ApiApiAuthorizationsV1SelfResourceReviewPostRequest) (SelfResourceReview, *_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 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 executes the request + // @return TermsReviewResponse ApiAuthorizationsV1SelfTermsReviewPostExecute(r ApiApiAuthorizationsV1SelfTermsReviewPostRequest) (TermsReviewResponse, *_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 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 executes the request + // @return TermsReviewResponse ApiAuthorizationsV1TermsReviewPostExecute(r ApiApiAuthorizationsV1TermsReviewPostRequest) (TermsReviewResponse, *_nethttp.Response, error) } @@ -1229,30 +1145,30 @@ type DefaultApi interface { type DefaultApiService service type ApiApiAccountsMgmtV1AccessTokenPostRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi } + 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 - */ +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 *DefaultApiService) ApiAccountsMgmtV1AccessTokenPost(ctx _context.Context) ApiApiAccountsMgmtV1AccessTokenPostRequest { return ApiApiAccountsMgmtV1AccessTokenPostRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } -/* - * Execute executes the request - * @return AccessTokenCfg - */ +// Execute executes the request +// @return AccessTokenCfg func (a *DefaultApiService) ApiAccountsMgmtV1AccessTokenPostExecute(r ApiApiAccountsMgmtV1AccessTokenPostRequest) (AccessTokenCfg, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -1378,47 +1294,48 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccessTokenPostExecute(r ApiApiAcco } type ApiApiAccountsMgmtV1AccountsGetRequest struct { - ctx _context.Context - ApiService DefaultApi - page *int32 - size *int32 - search *string - orderBy *string - fields *string - fetchLabels *bool + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string + orderBy *string + fields *string + fetchLabels *bool fetchCapabilities *bool } +// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1AccountsGetRequest) Page(page int32) ApiApiAccountsMgmtV1AccountsGetRequest { r.page = &page return r } - +// Maximum number of records to return func (r ApiApiAccountsMgmtV1AccountsGetRequest) Size(size int32) ApiApiAccountsMgmtV1AccountsGetRequest { r.size = &size return r } - +// 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. func (r ApiApiAccountsMgmtV1AccountsGetRequest) Search(search string) ApiApiAccountsMgmtV1AccountsGetRequest { r.search = &search return r } - +// 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. func (r ApiApiAccountsMgmtV1AccountsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1AccountsGetRequest { r.orderBy = &orderBy return r } - +// 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 ``` func (r ApiApiAccountsMgmtV1AccountsGetRequest) Fields(fields string) ApiApiAccountsMgmtV1AccountsGetRequest { r.fields = &fields return r } - +// If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1AccountsGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1AccountsGetRequest { r.fetchLabels = &fetchLabels return r } - +// If true, includes the capabilities on a subscription in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1AccountsGetRequest) FetchCapabilities(fetchCapabilities bool) ApiApiAccountsMgmtV1AccountsGetRequest { r.fetchCapabilities = &fetchCapabilities return r @@ -1429,21 +1346,20 @@ func (r ApiApiAccountsMgmtV1AccountsGetRequest) Execute() (AccountList, *_nethtt } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return AccountList - */ +// Execute executes the request +// @return AccountList func (a *DefaultApiService) ApiAccountsMgmtV1AccountsGetExecute(r ApiApiAccountsMgmtV1AccountsGetRequest) (AccountList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -1570,18 +1486,19 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsGetExecute(r ApiApiAccounts } type ApiApiAccountsMgmtV1AccountsIdGetRequest struct { - ctx _context.Context - ApiService DefaultApi - id string - fetchLabels *bool + ctx _context.Context + ApiService DefaultApi + id string + fetchLabels *bool fetchCapabilities *bool } +// If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1AccountsIdGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1AccountsIdGetRequest { r.fetchLabels = &fetchLabels return r } - +// If true, includes the capabilities on a subscription in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1AccountsIdGetRequest) FetchCapabilities(fetchCapabilities bool) ApiApiAccountsMgmtV1AccountsIdGetRequest { r.fetchCapabilities = &fetchCapabilities return r @@ -1592,23 +1509,22 @@ func (r ApiApiAccountsMgmtV1AccountsIdGetRequest) Execute() (Account, *_nethttp. } /* - * 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 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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return Account - */ +// Execute executes the request +// @return Account func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdGetExecute(r ApiApiAccountsMgmtV1AccountsIdGetRequest) (Account, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -1731,30 +1647,31 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdGetExecute(r ApiApiAccoun } type ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - page *int32 - size *int32 - search *string - orderBy *string + id string + page *int32 + size *int32 + search *string + orderBy *string } +// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) Page(page int32) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest { r.page = &page return r } - +// Maximum number of records to return func (r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) Size(size int32) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest { r.size = &size return r } - +// 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. func (r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) Search(search string) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest { r.search = &search return r } - +// 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. func (r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest { r.orderBy = &orderBy return r @@ -1765,23 +1682,22 @@ func (r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) Execute() (LabelList, *_ } /* - * 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 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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return LabelList - */ +// Execute executes the request +// @return LabelList func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsGetExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -1900,35 +1816,35 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsGetExecute(r ApiApi } type ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - key string + 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 - */ +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, + ctx: ctx, + id: id, + key: key, } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -2036,36 +1952,36 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecute(r } type ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - key string + 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 - */ +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, + ctx: ctx, + id: id, + key: key, } } -/* - * Execute executes the request - * @return Label - */ +// Execute executes the request +// @return Label func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -2183,13 +2099,14 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecute(r Api } type ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - key string - label *Label + id string + key string + label *Label } +// Label data func (r ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest) Label(label Label) ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest { r.label = &label return r @@ -2200,25 +2117,24 @@ func (r ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest) Execute() (Label, * } /* - * 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 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, + ctx: ctx, + id: id, + key: key, } } -/* - * Execute executes the request - * @return Label - */ +// Execute executes the request +// @return Label func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -2351,12 +2267,13 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecute(r A } type ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - label *Label + id string + label *Label } +// Label data func (r ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest) Label(label Label) ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest { r.label = &label return r @@ -2367,23 +2284,22 @@ func (r ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest) Execute() (Label, *_net } /* - * 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 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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return Label - */ +// Execute executes the request +// @return Label func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsPostExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest) (Label, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -2505,12 +2421,13 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsPostExecute(r ApiAp } type ApiApiAccountsMgmtV1AccountsIdPatchRequest struct { - ctx _context.Context - ApiService DefaultApi - id string + ctx _context.Context + ApiService DefaultApi + id string accountPatchRequest *AccountPatchRequest } +// Updated account data func (r ApiApiAccountsMgmtV1AccountsIdPatchRequest) AccountPatchRequest(accountPatchRequest AccountPatchRequest) ApiApiAccountsMgmtV1AccountsIdPatchRequest { r.accountPatchRequest = &accountPatchRequest return r @@ -2521,23 +2438,22 @@ func (r ApiApiAccountsMgmtV1AccountsIdPatchRequest) Execute() (Account, *_nethtt } /* - * 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 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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return Account - */ +// Execute executes the request +// @return Account func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdPatchExecute(r ApiApiAccountsMgmtV1AccountsIdPatchRequest) (Account, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -2679,17 +2595,18 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdPatchExecute(r ApiApiAcco } type ApiApiAccountsMgmtV1AccountsPostRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - account *Account - dryRun *bool + account *Account + dryRun *bool } +// Account data func (r ApiApiAccountsMgmtV1AccountsPostRequest) Account(account Account) ApiApiAccountsMgmtV1AccountsPostRequest { r.account = &account return r } - +// If true, instructs API to avoid making any changes, but rather run through validations only. func (r ApiApiAccountsMgmtV1AccountsPostRequest) DryRun(dryRun bool) ApiApiAccountsMgmtV1AccountsPostRequest { r.dryRun = &dryRun return r @@ -2700,21 +2617,20 @@ func (r ApiApiAccountsMgmtV1AccountsPostRequest) Execute() (Account, *_nethttp.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 - */ +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, + ctx: ctx, } } -/* - * Execute executes the request - * @return Account - */ +// Execute executes the request +// @return Account func (a *DefaultApiService) ApiAccountsMgmtV1AccountsPostExecute(r ApiApiAccountsMgmtV1AccountsPostRequest) (Account, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -2848,11 +2764,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsPostExecute(r ApiApiAccount } type ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi clusterAuthorizationRequest *ClusterAuthorizationRequest } +// Cluster and authorization data func (r ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest) ClusterAuthorizationRequest(clusterAuthorizationRequest ClusterAuthorizationRequest) ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest { r.clusterAuthorizationRequest = &clusterAuthorizationRequest return r @@ -2863,21 +2780,20 @@ func (r ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest) Execute() (Cluster } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return ClusterAuthorizationResponse - */ +// Execute executes the request +// @return ClusterAuthorizationResponse func (a *DefaultApiService) ApiAccountsMgmtV1ClusterAuthorizationsPostExecute(r ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest) (ClusterAuthorizationResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -3018,11 +2934,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1ClusterAuthorizationsPostExecute(r } type ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi clusterRegistrationRequest *ClusterRegistrationRequest } +// Cluster and authorization data func (r ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest) ClusterRegistrationRequest(clusterRegistrationRequest ClusterRegistrationRequest) ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest { r.clusterRegistrationRequest = &clusterRegistrationRequest return r @@ -3033,21 +2950,20 @@ func (r ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest) Execute() (ClusterR } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return ClusterRegistrationResponse - */ +// Execute executes the request +// @return ClusterRegistrationResponse func (a *DefaultApiService) ApiAccountsMgmtV1ClusterRegistrationsPostExecute(r ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest) (ClusterRegistrationResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -3198,11 +3114,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1ClusterRegistrationsPostExecute(r A } type ApiApiAccountsMgmtV1CurrentAccountGetRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi fetchLabels *bool } +// If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1CurrentAccountGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1CurrentAccountGetRequest { r.fetchLabels = &fetchLabels return r @@ -3213,21 +3130,20 @@ func (r ApiApiAccountsMgmtV1CurrentAccountGetRequest) Execute() (Account, *_neth } /* - * 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 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 *DefaultApiService) ApiAccountsMgmtV1CurrentAccountGet(ctx _context.Context) ApiApiAccountsMgmtV1CurrentAccountGetRequest { return ApiApiAccountsMgmtV1CurrentAccountGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } -/* - * Execute executes the request - * @return Account - */ +// Execute executes the request +// @return Account func (a *DefaultApiService) ApiAccountsMgmtV1CurrentAccountGetExecute(r ApiApiAccountsMgmtV1CurrentAccountGetRequest) (Account, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -3336,23 +3252,24 @@ func (a *DefaultApiService) ApiAccountsMgmtV1CurrentAccountGetExecute(r ApiApiAc } type ApiApiAccountsMgmtV1ErrorsGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - page *int32 - size *int32 - search *string + page *int32 + size *int32 + search *string } +// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1ErrorsGetRequest) Page(page int32) ApiApiAccountsMgmtV1ErrorsGetRequest { r.page = &page return r } - +// Maximum number of records to return func (r ApiApiAccountsMgmtV1ErrorsGetRequest) Size(size int32) ApiApiAccountsMgmtV1ErrorsGetRequest { r.size = &size return r } - +// 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. func (r ApiApiAccountsMgmtV1ErrorsGetRequest) Search(search string) ApiApiAccountsMgmtV1ErrorsGetRequest { r.search = &search return r @@ -3363,21 +3280,20 @@ func (r ApiApiAccountsMgmtV1ErrorsGetRequest) Execute() (ErrorList, *_nethttp.Re } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return ErrorList - */ +// Execute executes the request +// @return ErrorList func (a *DefaultApiService) ApiAccountsMgmtV1ErrorsGetExecute(r ApiApiAccountsMgmtV1ErrorsGetRequest) (ErrorList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -3492,33 +3408,33 @@ func (a *DefaultApiService) ApiAccountsMgmtV1ErrorsGetExecute(r ApiApiAccountsMg } type ApiApiAccountsMgmtV1ErrorsIdGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 - */ +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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return Error - */ +// Execute executes the request +// @return Error func (a *DefaultApiService) ApiAccountsMgmtV1ErrorsIdGetExecute(r ApiApiAccountsMgmtV1ErrorsIdGetRequest) (Error, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -3635,12 +3551,13 @@ func (a *DefaultApiService) ApiAccountsMgmtV1ErrorsIdGetExecute(r ApiApiAccounts } type ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest struct { - ctx _context.Context - ApiService DefaultApi - id string + ctx _context.Context + ApiService DefaultApi + id string featureToggleQueryRequest *FeatureToggleQueryRequest } +// The context of the query func (r ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest) FeatureToggleQueryRequest(featureToggleQueryRequest FeatureToggleQueryRequest) ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest { r.featureToggleQueryRequest = &featureToggleQueryRequest return r @@ -3651,23 +3568,22 @@ func (r ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest) Execute() (Feature } /* - * 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 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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return FeatureToggle - */ +// Execute executes the request +// @return FeatureToggle func (a *DefaultApiService) ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecute(r ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest) (FeatureToggle, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -3789,29 +3705,30 @@ func (a *DefaultApiService) ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecute(r } type ApiApiAccountsMgmtV1LabelsGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - page *int32 - size *int32 - search *string - orderBy *string + page *int32 + size *int32 + search *string + orderBy *string } +// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1LabelsGetRequest) Page(page int32) ApiApiAccountsMgmtV1LabelsGetRequest { r.page = &page return r } - +// Maximum number of records to return func (r ApiApiAccountsMgmtV1LabelsGetRequest) Size(size int32) ApiApiAccountsMgmtV1LabelsGetRequest { r.size = &size return r } - +// 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. func (r ApiApiAccountsMgmtV1LabelsGetRequest) Search(search string) ApiApiAccountsMgmtV1LabelsGetRequest { r.search = &search return r } - +// 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. func (r ApiApiAccountsMgmtV1LabelsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1LabelsGetRequest { r.orderBy = &orderBy return r @@ -3822,21 +3739,20 @@ func (r ApiApiAccountsMgmtV1LabelsGetRequest) Execute() (LabelList, *_nethttp.Re } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return LabelList - */ +// Execute executes the request +// @return LabelList func (a *DefaultApiService) ApiAccountsMgmtV1LabelsGetExecute(r ApiApiAccountsMgmtV1LabelsGetRequest) (LabelList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -3954,11 +3870,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1LabelsGetExecute(r ApiApiAccountsMg } type ApiApiAccountsMgmtV1MetricsGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - search *string + 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. func (r ApiApiAccountsMgmtV1MetricsGetRequest) Search(search string) ApiApiAccountsMgmtV1MetricsGetRequest { r.search = &search return r @@ -3969,21 +3886,20 @@ func (r ApiApiAccountsMgmtV1MetricsGetRequest) Execute() (MetricsList, *_nethttp } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return MetricsList - */ +// Execute executes the request +// @return MetricsList func (a *DefaultApiService) ApiAccountsMgmtV1MetricsGetExecute(r ApiApiAccountsMgmtV1MetricsGetRequest) (MetricsList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -4092,11 +4008,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1MetricsGetExecute(r ApiApiAccountsM } type ApiApiAccountsMgmtV1NotifyPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi 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 func (r ApiApiAccountsMgmtV1NotifyPostRequest) NotificationRequest(notificationRequest NotificationRequest) ApiApiAccountsMgmtV1NotifyPostRequest { r.notificationRequest = ¬ificationRequest return r @@ -4107,20 +4024,19 @@ func (r ApiApiAccountsMgmtV1NotifyPostRequest) Execute() (*_nethttp.Response, er } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *DefaultApiService) ApiAccountsMgmtV1NotifyPostExecute(r ApiApiAccountsMgmtV1NotifyPostRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -4231,47 +4147,48 @@ func (a *DefaultApiService) ApiAccountsMgmtV1NotifyPostExecute(r ApiApiAccountsM } type ApiApiAccountsMgmtV1OrganizationsGetRequest struct { - ctx _context.Context - ApiService DefaultApi - page *int32 - size *int32 - search *string - orderBy *string - fetchLabels *bool + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string + orderBy *string + fetchLabels *bool fetchCapabilities *bool - fields *string + fields *string } +// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) Page(page int32) ApiApiAccountsMgmtV1OrganizationsGetRequest { r.page = &page return r } - +// Maximum number of records to return func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) Size(size int32) ApiApiAccountsMgmtV1OrganizationsGetRequest { r.size = &size return r } - +// 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. func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) Search(search string) ApiApiAccountsMgmtV1OrganizationsGetRequest { r.search = &search return r } - +// 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. func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1OrganizationsGetRequest { r.orderBy = &orderBy return r } - +// If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1OrganizationsGetRequest { r.fetchLabels = &fetchLabels return r } - +// If true, includes the capabilities on a subscription in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) FetchCapabilities(fetchCapabilities bool) ApiApiAccountsMgmtV1OrganizationsGetRequest { r.fetchCapabilities = &fetchCapabilities return r } - +// 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 ``` func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) Fields(fields string) ApiApiAccountsMgmtV1OrganizationsGetRequest { r.fields = &fields return r @@ -4282,21 +4199,20 @@ func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) Execute() (OrganizationList } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return OrganizationList - */ +// Execute executes the request +// @return OrganizationList func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsGetExecute(r ApiApiAccountsMgmtV1OrganizationsGetRequest) (OrganizationList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -4423,18 +4339,19 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsGetExecute(r ApiApiAcc } type ApiApiAccountsMgmtV1OrganizationsIdGetRequest struct { - ctx _context.Context - ApiService DefaultApi - id string - fetchLabels *bool + ctx _context.Context + ApiService DefaultApi + id string + fetchLabels *bool fetchCapabilities *bool } +// If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1OrganizationsIdGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1OrganizationsIdGetRequest { r.fetchLabels = &fetchLabels return r } - +// If true, includes the capabilities on a subscription in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1OrganizationsIdGetRequest) FetchCapabilities(fetchCapabilities bool) ApiApiAccountsMgmtV1OrganizationsIdGetRequest { r.fetchCapabilities = &fetchCapabilities return r @@ -4445,23 +4362,22 @@ func (r ApiApiAccountsMgmtV1OrganizationsIdGetRequest) Execute() (Organization, } /* - * 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 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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return Organization - */ +// Execute executes the request +// @return Organization func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdGetRequest) (Organization, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -4584,30 +4500,31 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdGetExecute(r ApiApiA } type ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - page *int32 - size *int32 - search *string - orderBy *string + id string + page *int32 + size *int32 + search *string + orderBy *string } +// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) Page(page int32) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest { r.page = &page return r } - +// Maximum number of records to return func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) Size(size int32) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest { r.size = &size return r } - +// 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. func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) Search(search string) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest { r.search = &search return r } - +// 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. func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest { r.orderBy = &orderBy return r @@ -4618,23 +4535,22 @@ func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) Execute() (LabelLis } /* - * 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 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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return LabelList - */ +// Execute executes the request +// @return LabelList func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -4753,35 +4669,35 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsGetExecute(r A } type ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - key string + 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 - */ +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, + ctx: ctx, + id: id, + key: key, } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -4889,36 +4805,36 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecu } type ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - key string + 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 - */ +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, + ctx: ctx, + id: id, + key: key, } } -/* - * Execute executes the request - * @return Label - */ +// Execute executes the request +// @return Label func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -5036,13 +4952,14 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecute( } type ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - key string - label *Label + id string + key string + label *Label } +// Label data func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest) Label(label Label) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest { r.label = &label return r @@ -5053,25 +4970,24 @@ func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest) Execute() (Lab } /* - * 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 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, + ctx: ctx, + id: id, + key: key, } } -/* - * Execute executes the request - * @return Label - */ +// Execute executes the request +// @return Label func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -5204,12 +5120,13 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecut } type ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - label *Label + id string + label *Label } +// Label data func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest) Label(label Label) ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest { r.label = &label return r @@ -5220,23 +5137,22 @@ func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest) Execute() (Label, } /* - * 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 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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return Label - */ +// Execute executes the request +// @return Label func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsPostExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest) (Label, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -5358,12 +5274,13 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsPostExecute(r } type ApiApiAccountsMgmtV1OrganizationsIdPatchRequest struct { - ctx _context.Context - ApiService DefaultApi - id string + ctx _context.Context + ApiService DefaultApi + id string organizationPatchRequest *OrganizationPatchRequest } +// Updated organization data func (r ApiApiAccountsMgmtV1OrganizationsIdPatchRequest) OrganizationPatchRequest(organizationPatchRequest OrganizationPatchRequest) ApiApiAccountsMgmtV1OrganizationsIdPatchRequest { r.organizationPatchRequest = &organizationPatchRequest return r @@ -5374,23 +5291,22 @@ func (r ApiApiAccountsMgmtV1OrganizationsIdPatchRequest) Execute() (Organization } /* - * 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 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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return Organization - */ +// Execute executes the request +// @return Organization func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdPatchExecute(r ApiApiAccountsMgmtV1OrganizationsIdPatchRequest) (Organization, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -5522,33 +5438,33 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdPatchExecute(r ApiAp } type ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 - */ +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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return Summary - */ +// Execute executes the request +// @return Summary func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest) (Summary, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -5655,18 +5571,19 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetE } type ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest struct { - ctx _context.Context - ApiService DefaultApi - orgId string - search *string + ctx _context.Context + ApiService DefaultApi + orgId string + search *string fetchRelatedResources *bool } +// 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. func (r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) Search(search string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest { r.search = &search return r } - +// If true, includes the related resources in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) FetchRelatedResources(fetchRelatedResources bool) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest { r.fetchRelatedResources = &fetchRelatedResources return r @@ -5677,23 +5594,22 @@ func (r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) Execute() (Qu } /* - * 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 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 *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest { return ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest{ ApiService: a, - ctx: ctx, - orgId: orgId, + ctx: ctx, + orgId: orgId, } } -/* - * Execute executes the request - * @return QuotaCostList - */ +// Execute executes the request +// @return QuotaCostList func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) (QuotaCostList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -5796,12 +5712,13 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecu } type ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - orgId string - search *string + orgId string + 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. func (r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest) Search(search string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest { r.search = &search return r @@ -5812,23 +5729,25 @@ func (r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest) Execute() } /* - * ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet Returns a summary of 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 ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest - */ +ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet Returns a summary of 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 ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest + +Deprecated +*/ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest { return ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest{ ApiService: a, - ctx: ctx, - orgId: orgId, + ctx: ctx, + orgId: orgId, } } -/* - * Execute executes the request - * @return QuotaSummaryList - */ +// Execute executes the request +// @return QuotaSummaryList +// Deprecated func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest) (QuotaSummaryList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -5928,30 +5847,31 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetEx } type ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - orgId string - page *int32 - size *int32 - search *string - orderBy *string + orgId string + page *int32 + size *int32 + search *string + orderBy *string } +// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) Page(page int32) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest { r.page = &page return r } - +// Maximum number of records to return func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) Size(size int32) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest { r.size = &size return r } - +// 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. func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) Search(search string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest { r.search = &search return r } - +// 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. func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest { r.orderBy = &orderBy return r @@ -5962,23 +5882,22 @@ func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) Execute() } /* - * 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 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, + ctx: ctx, + orgId: orgId, } } -/* - * Execute executes the request - * @return ResourceQuotaList - */ +// Execute executes the request +// @return ResourceQuotaList func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) (ResourceQuotaList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -6107,12 +6026,13 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetE } type ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest struct { - ctx _context.Context - ApiService DefaultApi - orgId string + ctx _context.Context + ApiService DefaultApi + orgId string resourceQuotaRequest *ResourceQuotaRequest } +// Resource quota data func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest) ResourceQuotaRequest(resourceQuotaRequest ResourceQuotaRequest) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest { r.resourceQuotaRequest = &resourceQuotaRequest return r @@ -6123,23 +6043,22 @@ func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest) Execute( } /* - * 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 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, + ctx: ctx, + orgId: orgId, } } -/* - * Execute executes the request - * @return ResourceQuota - */ +// Execute executes the request +// @return ResourceQuota func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest) (ResourceQuota, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -6271,35 +6190,35 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost } type ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - orgId string - quotaId string + 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 - */ +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, + ctx: ctx, + orgId: orgId, + quotaId: quotaId, } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -6407,36 +6326,36 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuot } type ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - orgId string - quotaId string + 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 - */ +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, + ctx: ctx, + orgId: orgId, + quotaId: quotaId, } } -/* - * Execute executes the request - * @return ResourceQuota - */ +// Execute executes the request +// @return ResourceQuota func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest) (ResourceQuota, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -6554,13 +6473,14 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuot } type ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest struct { - ctx _context.Context - ApiService DefaultApi - orgId string - quotaId string + ctx _context.Context + ApiService DefaultApi + orgId string + quotaId string resourceQuotaRequest *ResourceQuotaRequest } +// Updated resource quota data func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest) ResourceQuotaRequest(resourceQuotaRequest ResourceQuotaRequest) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest { r.resourceQuotaRequest = &resourceQuotaRequest return r @@ -6571,25 +6491,24 @@ func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest) } /* - * 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 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, + ctx: ctx, + orgId: orgId, + quotaId: quotaId, } } -/* - * Execute executes the request - * @return ResourceQuota - */ +// Execute executes the request +// @return ResourceQuota func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest) (ResourceQuota, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -6722,11 +6641,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuot } type ApiApiAccountsMgmtV1OrganizationsPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi organization *Organization } +// Organization data func (r ApiApiAccountsMgmtV1OrganizationsPostRequest) Organization(organization Organization) ApiApiAccountsMgmtV1OrganizationsPostRequest { r.organization = &organization return r @@ -6737,21 +6657,20 @@ func (r ApiApiAccountsMgmtV1OrganizationsPostRequest) Execute() (Organization, * } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return Organization - */ +// Execute executes the request +// @return Organization func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsPostExecute(r ApiApiAccountsMgmtV1OrganizationsPostRequest) (Organization, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -6882,23 +6801,24 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsPostExecute(r ApiApiAc } type ApiApiAccountsMgmtV1PlansGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - page *int32 - size *int32 - search *string + page *int32 + size *int32 + search *string } +// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1PlansGetRequest) Page(page int32) ApiApiAccountsMgmtV1PlansGetRequest { r.page = &page return r } - +// Maximum number of records to return func (r ApiApiAccountsMgmtV1PlansGetRequest) Size(size int32) ApiApiAccountsMgmtV1PlansGetRequest { r.size = &size return r } - +// 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. func (r ApiApiAccountsMgmtV1PlansGetRequest) Search(search string) ApiApiAccountsMgmtV1PlansGetRequest { r.search = &search return r @@ -6909,21 +6829,20 @@ func (r ApiApiAccountsMgmtV1PlansGetRequest) Execute() (PlanList, *_nethttp.Resp } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return PlanList - */ +// Execute executes the request +// @return PlanList func (a *DefaultApiService) ApiAccountsMgmtV1PlansGetExecute(r ApiApiAccountsMgmtV1PlansGetRequest) (PlanList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -7038,33 +6957,33 @@ func (a *DefaultApiService) ApiAccountsMgmtV1PlansGetExecute(r ApiApiAccountsMgm } type ApiApiAccountsMgmtV1PlansIdGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 - */ +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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return Plan - */ +// Execute executes the request +// @return Plan func (a *DefaultApiService) ApiAccountsMgmtV1PlansIdGetExecute(r ApiApiAccountsMgmtV1PlansIdGetRequest) (Plan, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -7181,32 +7100,32 @@ func (a *DefaultApiService) ApiAccountsMgmtV1PlansIdGetExecute(r ApiApiAccountsM } type ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest struct { - ctx _context.Context - ApiService DefaultApi + 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 - */ +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, + ApiService: a, + ctx: ctx, externalResourceId: externalResourceId, } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *DefaultApiService) ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecute(r ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -7313,11 +7232,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete } type ApiApiAccountsMgmtV1PullSecretsPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi pullSecretRequest *PullSecretRequest } +// Identifier of the resource in the external service that this pull secret relates to func (r ApiApiAccountsMgmtV1PullSecretsPostRequest) PullSecretRequest(pullSecretRequest PullSecretRequest) ApiApiAccountsMgmtV1PullSecretsPostRequest { r.pullSecretRequest = &pullSecretRequest return r @@ -7328,21 +7248,20 @@ func (r ApiApiAccountsMgmtV1PullSecretsPostRequest) Execute() (AccessTokenCfg, * } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return AccessTokenCfg - */ +// Execute executes the request +// @return AccessTokenCfg func (a *DefaultApiService) ApiAccountsMgmtV1PullSecretsPostExecute(r ApiApiAccountsMgmtV1PullSecretsPostRequest) (AccessTokenCfg, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -7473,29 +7392,30 @@ func (a *DefaultApiService) ApiAccountsMgmtV1PullSecretsPostExecute(r ApiApiAcco } type ApiApiAccountsMgmtV1RegistriesGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - page *int32 - size *int32 - search *string - orderBy *string + page *int32 + size *int32 + search *string + orderBy *string } +// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1RegistriesGetRequest) Page(page int32) ApiApiAccountsMgmtV1RegistriesGetRequest { r.page = &page return r } - +// Maximum number of records to return func (r ApiApiAccountsMgmtV1RegistriesGetRequest) Size(size int32) ApiApiAccountsMgmtV1RegistriesGetRequest { r.size = &size return r } - +// 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. func (r ApiApiAccountsMgmtV1RegistriesGetRequest) Search(search string) ApiApiAccountsMgmtV1RegistriesGetRequest { r.search = &search return r } - +// 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. func (r ApiApiAccountsMgmtV1RegistriesGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1RegistriesGetRequest { r.orderBy = &orderBy return r @@ -7506,21 +7426,20 @@ func (r ApiApiAccountsMgmtV1RegistriesGetRequest) Execute() (RegistryList, *_net } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return RegistryList - */ +// Execute executes the request +// @return RegistryList func (a *DefaultApiService) ApiAccountsMgmtV1RegistriesGetExecute(r ApiApiAccountsMgmtV1RegistriesGetRequest) (RegistryList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -7638,33 +7557,33 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RegistriesGetExecute(r ApiApiAccoun } type ApiApiAccountsMgmtV1RegistriesIdGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 - */ +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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return Registry - */ +// Execute executes the request +// @return Registry func (a *DefaultApiService) ApiAccountsMgmtV1RegistriesIdGetExecute(r ApiApiAccountsMgmtV1RegistriesIdGetRequest) (Registry, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -7781,29 +7700,30 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RegistriesIdGetExecute(r ApiApiAcco } type ApiApiAccountsMgmtV1RegistryCredentialsGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - page *int32 - size *int32 - search *string - orderBy *string + page *int32 + size *int32 + search *string + orderBy *string } +// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) Page(page int32) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest { r.page = &page return r } - +// Maximum number of records to return func (r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) Size(size int32) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest { r.size = &size return r } - +// 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. func (r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) Search(search string) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest { r.search = &search return r } - +// 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. func (r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest { r.orderBy = &orderBy return r @@ -7814,22 +7734,22 @@ func (r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) Execute() (RegistryCr } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return RegistryCredentialList - */ +// Execute executes the request +// @return RegistryCredentialList func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsGetExecute(r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) (RegistryCredentialList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -7947,32 +7867,32 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsGetExecute(r Api } type ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 - */ +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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecute(r ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -8079,33 +7999,33 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecute( } type ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 - */ +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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return RegistryCredential - */ +// Execute executes the request +// @return RegistryCredential func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsIdGetExecute(r ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest) (RegistryCredential, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -8222,12 +8142,13 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsIdGetExecute(r A } type ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest struct { - ctx _context.Context - ApiService DefaultApi - id string + ctx _context.Context + ApiService DefaultApi + id string registryCredentialPatchRequest *RegistryCredentialPatchRequest } +// Updated registry credential data func (r ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest) RegistryCredentialPatchRequest(registryCredentialPatchRequest RegistryCredentialPatchRequest) ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest { r.registryCredentialPatchRequest = ®istryCredentialPatchRequest return r @@ -8238,23 +8159,22 @@ func (r ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest) Execute() (Regist } /* - * 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 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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return RegistryCredential - */ +// Execute executes the request +// @return RegistryCredential func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsIdPatchExecute(r ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest) (RegistryCredential, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -8386,11 +8306,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsIdPatchExecute(r } type ApiApiAccountsMgmtV1RegistryCredentialsPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi registryCredential *RegistryCredential } +// Registry credential data func (r ApiApiAccountsMgmtV1RegistryCredentialsPostRequest) RegistryCredential(registryCredential RegistryCredential) ApiApiAccountsMgmtV1RegistryCredentialsPostRequest { r.registryCredential = ®istryCredential return r @@ -8401,21 +8322,20 @@ func (r ApiApiAccountsMgmtV1RegistryCredentialsPostRequest) Execute() (RegistryC } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return RegistryCredential - */ +// Execute executes the request +// @return RegistryCredential func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsPostExecute(r ApiApiAccountsMgmtV1RegistryCredentialsPostRequest) (RegistryCredential, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -8546,29 +8466,30 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsPostExecute(r Ap } type ApiApiAccountsMgmtV1ReservedResourcesGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - page *int32 - size *int32 - search *string - orderBy *string + page *int32 + size *int32 + search *string + orderBy *string } +// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) Page(page int32) ApiApiAccountsMgmtV1ReservedResourcesGetRequest { r.page = &page return r } - +// Maximum number of records to return func (r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) Size(size int32) ApiApiAccountsMgmtV1ReservedResourcesGetRequest { r.size = &size return r } - +// 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. func (r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) Search(search string) ApiApiAccountsMgmtV1ReservedResourcesGetRequest { r.search = &search return r } - +// 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. func (r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1ReservedResourcesGetRequest { r.orderBy = &orderBy return r @@ -8579,21 +8500,20 @@ func (r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) Execute() (ReservedReso } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return ReservedResourceList - */ +// Execute executes the request +// @return ReservedResourceList func (a *DefaultApiService) ApiAccountsMgmtV1ReservedResourcesGetExecute(r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) (ReservedResourceList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -8711,29 +8631,30 @@ func (a *DefaultApiService) ApiAccountsMgmtV1ReservedResourcesGetExecute(r ApiAp } type ApiApiAccountsMgmtV1ResourceQuotaGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - page *int32 - size *int32 - search *string - orderBy *string + page *int32 + size *int32 + search *string + orderBy *string } +// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) Page(page int32) ApiApiAccountsMgmtV1ResourceQuotaGetRequest { r.page = &page return r } - +// Maximum number of records to return func (r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) Size(size int32) ApiApiAccountsMgmtV1ResourceQuotaGetRequest { r.size = &size return r } - +// 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. func (r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) Search(search string) ApiApiAccountsMgmtV1ResourceQuotaGetRequest { r.search = &search return r } - +// 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. func (r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1ResourceQuotaGetRequest { r.orderBy = &orderBy return r @@ -8744,21 +8665,20 @@ func (r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) Execute() (ResourceQuotaLis } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return ResourceQuotaList - */ +// Execute executes the request +// @return ResourceQuotaList func (a *DefaultApiService) ApiAccountsMgmtV1ResourceQuotaGetExecute(r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) (ResourceQuotaList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -8876,29 +8796,30 @@ func (a *DefaultApiService) ApiAccountsMgmtV1ResourceQuotaGetExecute(r ApiApiAcc } type ApiApiAccountsMgmtV1RoleBindingsGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - page *int32 - size *int32 - search *string - orderBy *string + page *int32 + size *int32 + search *string + orderBy *string } +// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1RoleBindingsGetRequest) Page(page int32) ApiApiAccountsMgmtV1RoleBindingsGetRequest { r.page = &page return r } - +// Maximum number of records to return func (r ApiApiAccountsMgmtV1RoleBindingsGetRequest) Size(size int32) ApiApiAccountsMgmtV1RoleBindingsGetRequest { r.size = &size return r } - +// 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. func (r ApiApiAccountsMgmtV1RoleBindingsGetRequest) Search(search string) ApiApiAccountsMgmtV1RoleBindingsGetRequest { r.search = &search return r } - +// 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. func (r ApiApiAccountsMgmtV1RoleBindingsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1RoleBindingsGetRequest { r.orderBy = &orderBy return r @@ -8909,21 +8830,20 @@ func (r ApiApiAccountsMgmtV1RoleBindingsGetRequest) Execute() (RoleBindingList, } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return RoleBindingList - */ +// Execute executes the request +// @return RoleBindingList func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsGetExecute(r ApiApiAccountsMgmtV1RoleBindingsGetRequest) (RoleBindingList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -9041,32 +8961,32 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsGetExecute(r ApiApiAcco } type ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 - */ +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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsIdDeleteExecute(r ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -9173,33 +9093,33 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsIdDeleteExecute(r ApiAp } type ApiApiAccountsMgmtV1RoleBindingsIdGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 - */ +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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return RoleBinding - */ +// Execute executes the request +// @return RoleBinding func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsIdGetExecute(r ApiApiAccountsMgmtV1RoleBindingsIdGetRequest) (RoleBinding, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -9316,12 +9236,13 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsIdGetExecute(r ApiApiAc } type ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest struct { - ctx _context.Context - ApiService DefaultApi - id string + ctx _context.Context + ApiService DefaultApi + id string roleBindingRequest *RoleBindingRequest } +// Updated role binding data func (r ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest) RoleBindingRequest(roleBindingRequest RoleBindingRequest) ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest { r.roleBindingRequest = &roleBindingRequest return r @@ -9332,23 +9253,22 @@ func (r ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest) Execute() (RoleBinding, } /* - * 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 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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return RoleBinding - */ +// Execute executes the request +// @return RoleBinding func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsIdPatchExecute(r ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest) (RoleBinding, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -9480,11 +9400,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsIdPatchExecute(r ApiApi } type ApiApiAccountsMgmtV1RoleBindingsPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi roleBindingCreateRequest *RoleBindingCreateRequest } +// Role binding data func (r ApiApiAccountsMgmtV1RoleBindingsPostRequest) RoleBindingCreateRequest(roleBindingCreateRequest RoleBindingCreateRequest) ApiApiAccountsMgmtV1RoleBindingsPostRequest { r.roleBindingCreateRequest = &roleBindingCreateRequest return r @@ -9495,21 +9416,20 @@ func (r ApiApiAccountsMgmtV1RoleBindingsPostRequest) Execute() (RoleBinding, *_n } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return RoleBinding - */ +// Execute executes the request +// @return RoleBinding func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsPostExecute(r ApiApiAccountsMgmtV1RoleBindingsPostRequest) (RoleBinding, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -9640,23 +9560,24 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsPostExecute(r ApiApiAcc } type ApiApiAccountsMgmtV1RolesGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - page *int32 - size *int32 - search *string + page *int32 + size *int32 + search *string } +// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1RolesGetRequest) Page(page int32) ApiApiAccountsMgmtV1RolesGetRequest { r.page = &page return r } - +// Maximum number of records to return func (r ApiApiAccountsMgmtV1RolesGetRequest) Size(size int32) ApiApiAccountsMgmtV1RolesGetRequest { r.size = &size return r } - +// 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. func (r ApiApiAccountsMgmtV1RolesGetRequest) Search(search string) ApiApiAccountsMgmtV1RolesGetRequest { r.search = &search return r @@ -9667,21 +9588,20 @@ func (r ApiApiAccountsMgmtV1RolesGetRequest) Execute() (RoleList, *_nethttp.Resp } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return RoleList - */ +// Execute executes the request +// @return RoleList func (a *DefaultApiService) ApiAccountsMgmtV1RolesGetExecute(r ApiApiAccountsMgmtV1RolesGetRequest) (RoleList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -9796,33 +9716,33 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RolesGetExecute(r ApiApiAccountsMgm } type ApiApiAccountsMgmtV1RolesIdGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 - */ +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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return Role - */ +// Execute executes the request +// @return Role func (a *DefaultApiService) ApiAccountsMgmtV1RolesIdGetExecute(r ApiApiAccountsMgmtV1RolesIdGetRequest) (Role, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -9939,11 +9859,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RolesIdGetExecute(r ApiApiAccountsM } type ApiApiAccountsMgmtV1SkuRulesGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - search *string + 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. func (r ApiApiAccountsMgmtV1SkuRulesGetRequest) Search(search string) ApiApiAccountsMgmtV1SkuRulesGetRequest { r.search = &search return r @@ -9954,21 +9875,20 @@ func (r ApiApiAccountsMgmtV1SkuRulesGetRequest) Execute() (SkuRulesList, *_netht } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return SkuRulesList - */ +// Execute executes the request +// @return SkuRulesList func (a *DefaultApiService) ApiAccountsMgmtV1SkuRulesGetExecute(r ApiApiAccountsMgmtV1SkuRulesGetRequest) (SkuRulesList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -10077,33 +9997,33 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SkuRulesGetExecute(r ApiApiAccounts } type ApiApiAccountsMgmtV1SkuRulesIdGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 - */ +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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return SkuRules - */ +// Execute executes the request +// @return SkuRules func (a *DefaultApiService) ApiAccountsMgmtV1SkuRulesIdGetExecute(r ApiApiAccountsMgmtV1SkuRulesIdGetRequest) (SkuRules, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -10220,11 +10140,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SkuRulesIdGetExecute(r ApiApiAccoun } type ApiApiAccountsMgmtV1SkusGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - search *string + 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. func (r ApiApiAccountsMgmtV1SkusGetRequest) Search(search string) ApiApiAccountsMgmtV1SkusGetRequest { r.search = &search return r @@ -10235,21 +10156,20 @@ func (r ApiApiAccountsMgmtV1SkusGetRequest) Execute() (SkuList, *_nethttp.Respon } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return SkuList - */ +// Execute executes the request +// @return SkuList func (a *DefaultApiService) ApiAccountsMgmtV1SkusGetExecute(r ApiApiAccountsMgmtV1SkusGetRequest) (SkuList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -10358,33 +10278,33 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SkusGetExecute(r ApiApiAccountsMgmt } type ApiApiAccountsMgmtV1SkusIdGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 - */ +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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return SKU - */ +// Execute executes the request +// @return SKU func (a *DefaultApiService) ApiAccountsMgmtV1SkusIdGetExecute(r ApiApiAccountsMgmtV1SkusIdGetRequest) (SKU, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -10501,59 +10421,60 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SkusIdGetExecute(r ApiApiAccountsMg } type ApiApiAccountsMgmtV1SubscriptionsGetRequest struct { - ctx _context.Context - ApiService DefaultApi - page *int32 - size *int32 - search *string - fetchAccounts *bool - fetchLabels *bool + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string + fetchAccounts *bool + fetchLabels *bool fetchCapabilities *bool - fields *string - orderBy *string - labels *string + fields *string + orderBy *string + labels *string } +// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) Page(page int32) ApiApiAccountsMgmtV1SubscriptionsGetRequest { r.page = &page return r } - +// Maximum number of records to return func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) Size(size int32) ApiApiAccountsMgmtV1SubscriptionsGetRequest { r.size = &size return r } - +// 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. func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) Search(search string) ApiApiAccountsMgmtV1SubscriptionsGetRequest { r.search = &search return r } - +// If true, includes the account reference information in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) FetchAccounts(fetchAccounts bool) ApiApiAccountsMgmtV1SubscriptionsGetRequest { r.fetchAccounts = &fetchAccounts return r } - +// If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1SubscriptionsGetRequest { r.fetchLabels = &fetchLabels return r } - +// If true, includes the capabilities on a subscription in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) FetchCapabilities(fetchCapabilities bool) ApiApiAccountsMgmtV1SubscriptionsGetRequest { r.fetchCapabilities = &fetchCapabilities return r } - +// 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 ``` func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) Fields(fields string) ApiApiAccountsMgmtV1SubscriptionsGetRequest { r.fields = &fields return r } - +// 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. func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1SubscriptionsGetRequest { r.orderBy = &orderBy return r } - +// 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\" ``` func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) Labels(labels string) ApiApiAccountsMgmtV1SubscriptionsGetRequest { r.labels = &labels return r @@ -10564,21 +10485,20 @@ func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) Execute() (SubscriptionList } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return SubscriptionList - */ +// Execute executes the request +// @return SubscriptionList func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsGetRequest) (SubscriptionList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -10711,32 +10631,32 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsGetExecute(r ApiApiAcc } type ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 - */ +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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -10843,30 +10763,31 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdDeleteExecute(r ApiA } type ApiApiAccountsMgmtV1SubscriptionsIdGetRequest struct { - ctx _context.Context - ApiService DefaultApi - id string - fetchAccounts *bool - fetchLabels *bool + ctx _context.Context + ApiService DefaultApi + id string + fetchAccounts *bool + fetchLabels *bool fetchCapabilities *bool fetchCpuAndSocket *bool } +// If true, includes the account reference information in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) FetchAccounts(fetchAccounts bool) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest { r.fetchAccounts = &fetchAccounts return r } - +// If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest { r.fetchLabels = &fetchLabels return r } - +// If true, includes the capabilities on a subscription in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) FetchCapabilities(fetchCapabilities bool) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest { r.fetchCapabilities = &fetchCapabilities return r } - +// 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. func (r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) FetchCpuAndSocket(fetchCpuAndSocket bool) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest { r.fetchCpuAndSocket = &fetchCpuAndSocket return r @@ -10877,23 +10798,22 @@ func (r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) Execute() (Subscription, } /* - * 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 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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return Subscription - */ +// Execute executes the request +// @return Subscription func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) (Subscription, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -11022,30 +10942,31 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdGetExecute(r ApiApiA } type ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - page *int32 - size *int32 - search *string - orderBy *string + id string + page *int32 + size *int32 + search *string + orderBy *string } +// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) Page(page int32) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest { r.page = &page return r } - +// Maximum number of records to return func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) Size(size int32) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest { r.size = &size return r } - +// 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. func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) Search(search string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest { r.search = &search return r } - +// 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. func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest { r.orderBy = &orderBy return r @@ -11056,23 +10977,22 @@ func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) Execute() (LabelLis } /* - * 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 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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return LabelList - */ +// Execute executes the request +// @return LabelList func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -11191,35 +11111,35 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecute(r A } type ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - key string + 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 - */ +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, + ctx: ctx, + id: id, + key: key, } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -11327,36 +11247,36 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecu } type ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - key string + 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 - */ +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, + ctx: ctx, + id: id, + key: key, } } -/* - * Execute executes the request - * @return Label - */ +// Execute executes the request +// @return Label func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -11474,13 +11394,14 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecute( } type ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - key string - label *Label + id string + key string + label *Label } +// Label data func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest) Label(label Label) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest { r.label = &label return r @@ -11491,25 +11412,24 @@ func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest) Execute() (Lab } /* - * 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 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, + ctx: ctx, + id: id, + key: key, } } -/* - * Execute executes the request - * @return Label - */ +// Execute executes the request +// @return Label func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -11642,12 +11562,13 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecut } type ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - label *Label + id string + label *Label } +// Label data func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest) Label(label Label) ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest { r.label = &label return r @@ -11658,23 +11579,22 @@ func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest) Execute() (Label, } /* - * 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 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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return Label - */ +// Execute executes the request +// @return Label func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest) (Label, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -11796,12 +11716,13 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecute(r } type ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest struct { - ctx _context.Context - ApiService DefaultApi - id string + ctx _context.Context + ApiService DefaultApi + id string 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 func (r ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest) NotificationRequest(notificationRequest NotificationRequest) ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest { r.notificationRequest = ¬ificationRequest return r @@ -11812,22 +11733,21 @@ func (r ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest) Execute() (*_netht } /* - * 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 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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecute(r ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -11939,12 +11859,13 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecute(r } type ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest struct { - ctx _context.Context - ApiService DefaultApi - id string + ctx _context.Context + ApiService DefaultApi + id string subscriptionPatchRequest *SubscriptionPatchRequest } +// Updated subscription data func (r ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest) SubscriptionPatchRequest(subscriptionPatchRequest SubscriptionPatchRequest) ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest { r.subscriptionPatchRequest = &subscriptionPatchRequest return r @@ -11955,23 +11876,22 @@ func (r ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest) Execute() (Subscription } /* - * 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 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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return Subscription - */ +// Execute executes the request +// @return Subscription func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdPatchExecute(r ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest) (Subscription, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -12103,30 +12023,31 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdPatchExecute(r ApiAp } type ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - page *int32 - size *int32 - search *string - orderBy *string + id string + page *int32 + size *int32 + search *string + orderBy *string } +// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) Page(page int32) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest { r.page = &page return r } - +// Maximum number of records to return func (r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) Size(size int32) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest { r.size = &size return r } - +// 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. func (r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) Search(search string) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest { r.search = &search return r } - +// 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. func (r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest { r.orderBy = &orderBy return r @@ -12137,23 +12058,22 @@ func (r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) Execute( } /* - * 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 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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - * @return ReservedResourceList - */ +// Execute executes the request +// @return ReservedResourceList func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) (ReservedResourceList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -12272,18 +12192,19 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet } type ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - page *int32 - size *int32 + id string + page *int32 + size *int32 } +// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest) Page(page int32) ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest { r.page = &page return r } - +// Maximum number of records to return func (r ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest) Size(size int32) ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest { r.size = &size return r @@ -12294,22 +12215,21 @@ func (r ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest) Execute() (*_ } /* - * 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 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, + ctx: ctx, + id: id, } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -12412,11 +12332,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecu } type ApiApiAccountsMgmtV1SubscriptionsPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi subscriptionCreateRequest *SubscriptionCreateRequest } +// Subscription Creation data func (r ApiApiAccountsMgmtV1SubscriptionsPostRequest) SubscriptionCreateRequest(subscriptionCreateRequest SubscriptionCreateRequest) ApiApiAccountsMgmtV1SubscriptionsPostRequest { r.subscriptionCreateRequest = &subscriptionCreateRequest return r @@ -12427,21 +12348,20 @@ func (r ApiApiAccountsMgmtV1SubscriptionsPostRequest) Execute() (Subscription, * } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return Subscription - */ +// Execute executes the request +// @return Subscription func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsPostRequest) (Subscription, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -12572,35 +12492,35 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsPostExecute(r ApiApiAc } type ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - subId string - accountId string + 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 - */ +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, + ctx: ctx, + subId: subId, + accountId: accountId, } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -12708,36 +12628,37 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdNotificationConta } type ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - subId string - page *int32 - size *int32 - search *string - fields *string - orderBy *string + subId string + page *int32 + size *int32 + search *string + fields *string + orderBy *string } +// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) Page(page int32) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { r.page = &page return r } - +// Maximum number of records to return func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) Size(size int32) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { r.size = &size return r } - +// 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. func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) Search(search string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { r.search = &search return r } - +// 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 ``` func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) Fields(fields string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { r.fields = &fields return r } - +// 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. func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { r.orderBy = &orderBy return r @@ -12748,23 +12669,22 @@ func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) Ex } /* - * 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 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, + ctx: ctx, + subId: subId, } } -/* - * Execute executes the request - * @return AccountList - */ +// Execute executes the request +// @return AccountList func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) (AccountList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -12886,12 +12806,13 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdNotificationConta } type ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest struct { - ctx _context.Context - ApiService DefaultApi - subId string + ctx _context.Context + ApiService DefaultApi + subId string notificationContactCreateRequest *NotificationContactCreateRequest } +// Add a notification contact by an account's username func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest) NotificationContactCreateRequest(notificationContactCreateRequest NotificationContactCreateRequest) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest { r.notificationContactCreateRequest = ¬ificationContactCreateRequest return r @@ -12902,23 +12823,22 @@ func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest) E } /* - * 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 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, + ctx: ctx, + subId: subId, } } -/* - * Execute executes the request - * @return Account - */ +// Execute executes the request +// @return Account func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest) (Account, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -13050,36 +12970,36 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdNotificationConta } type ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest struct { - ctx _context.Context - ApiService DefaultApi - subId string + 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 - */ +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, + ApiService: a, + ctx: ctx, + subId: subId, reservedResourceId: reservedResourceId, } } -/* - * Execute executes the request - * @return ReservedResource - */ +// Execute executes the request +// @return ReservedResource func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest) (ReservedResource, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -13197,32 +13117,32 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdReservedResources } type ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - caseId string + 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 - */ +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, + ctx: ctx, + caseId: caseId, } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *DefaultApiService) ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecute(r ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -13339,11 +13259,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecute(r A } type ApiApiAccountsMgmtV1SupportCasesPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi supportCasesRequest *SupportCasesRequest } +// The contents of the support case to be created func (r ApiApiAccountsMgmtV1SupportCasesPostRequest) SupportCasesRequest(supportCasesRequest SupportCasesRequest) ApiApiAccountsMgmtV1SupportCasesPostRequest { r.supportCasesRequest = &supportCasesRequest return r @@ -13354,21 +13275,20 @@ func (r ApiApiAccountsMgmtV1SupportCasesPostRequest) Execute() (SupportCasesCrea } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return SupportCasesCreatedResponse - */ +// Execute executes the request +// @return SupportCasesCreatedResponse func (a *DefaultApiService) ApiAccountsMgmtV1SupportCasesPostExecute(r ApiApiAccountsMgmtV1SupportCasesPostRequest) (SupportCasesCreatedResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -13489,11 +13409,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SupportCasesPostExecute(r ApiApiAcc } type ApiApiAccountsMgmtV1TokenAuthorizationPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi tokenAuthorizationRequest *TokenAuthorizationRequest } +// Token authorization data func (r ApiApiAccountsMgmtV1TokenAuthorizationPostRequest) TokenAuthorizationRequest(tokenAuthorizationRequest TokenAuthorizationRequest) ApiApiAccountsMgmtV1TokenAuthorizationPostRequest { r.tokenAuthorizationRequest = &tokenAuthorizationRequest return r @@ -13504,21 +13425,20 @@ func (r ApiApiAccountsMgmtV1TokenAuthorizationPostRequest) Execute() (TokenAutho } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return TokenAuthorizationResponse - */ +// Execute executes the request +// @return TokenAuthorizationResponse func (a *DefaultApiService) ApiAccountsMgmtV1TokenAuthorizationPostExecute(r ApiApiAccountsMgmtV1TokenAuthorizationPostRequest) (TokenAuthorizationResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -13639,11 +13559,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1TokenAuthorizationPostExecute(r Api } type ApiApiAuthorizationsV1AccessReviewPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi accessReview *AccessReview } +// Access review data func (r ApiApiAuthorizationsV1AccessReviewPostRequest) AccessReview(accessReview AccessReview) ApiApiAuthorizationsV1AccessReviewPostRequest { r.accessReview = &accessReview return r @@ -13654,21 +13575,20 @@ func (r ApiApiAuthorizationsV1AccessReviewPostRequest) Execute() (AccessReviewRe } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return AccessReviewResponse - */ +// Execute executes the request +// @return AccessReviewResponse func (a *DefaultApiService) ApiAuthorizationsV1AccessReviewPostExecute(r ApiApiAuthorizationsV1AccessReviewPostRequest) (AccessReviewResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -13799,11 +13719,12 @@ func (a *DefaultApiService) ApiAuthorizationsV1AccessReviewPostExecute(r ApiApiA } type ApiApiAuthorizationsV1CapabilityReviewPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi capabilityReviewRequest *CapabilityReviewRequest } +// Capability review data func (r ApiApiAuthorizationsV1CapabilityReviewPostRequest) CapabilityReviewRequest(capabilityReviewRequest CapabilityReviewRequest) ApiApiAuthorizationsV1CapabilityReviewPostRequest { r.capabilityReviewRequest = &capabilityReviewRequest return r @@ -13814,21 +13735,20 @@ func (r ApiApiAuthorizationsV1CapabilityReviewPostRequest) Execute() (Capability } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return CapabilityReview - */ +// Execute executes the request +// @return CapabilityReview func (a *DefaultApiService) ApiAuthorizationsV1CapabilityReviewPostExecute(r ApiApiAuthorizationsV1CapabilityReviewPostRequest) (CapabilityReview, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -13949,11 +13869,12 @@ func (a *DefaultApiService) ApiAuthorizationsV1CapabilityReviewPostExecute(r Api } type ApiApiAuthorizationsV1ExportControlReviewPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi exportControlReviewRequest *ExportControlReviewRequest } +// Export control review data func (r ApiApiAuthorizationsV1ExportControlReviewPostRequest) ExportControlReviewRequest(exportControlReviewRequest ExportControlReviewRequest) ApiApiAuthorizationsV1ExportControlReviewPostRequest { r.exportControlReviewRequest = &exportControlReviewRequest return r @@ -13964,21 +13885,20 @@ func (r ApiApiAuthorizationsV1ExportControlReviewPostRequest) Execute() (ExportC } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return ExportControlReview - */ +// Execute executes the request +// @return ExportControlReview func (a *DefaultApiService) ApiAuthorizationsV1ExportControlReviewPostExecute(r ApiApiAuthorizationsV1ExportControlReviewPostRequest) (ExportControlReview, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -14099,11 +14019,12 @@ func (a *DefaultApiService) ApiAuthorizationsV1ExportControlReviewPostExecute(r } type ApiApiAuthorizationsV1ResourceReviewPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi resourceReviewRequest *ResourceReviewRequest } +// Resource review data func (r ApiApiAuthorizationsV1ResourceReviewPostRequest) ResourceReviewRequest(resourceReviewRequest ResourceReviewRequest) ApiApiAuthorizationsV1ResourceReviewPostRequest { r.resourceReviewRequest = &resourceReviewRequest return r @@ -14114,21 +14035,20 @@ func (r ApiApiAuthorizationsV1ResourceReviewPostRequest) Execute() (ResourceRevi } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return ResourceReview - */ +// Execute executes the request +// @return ResourceReview func (a *DefaultApiService) ApiAuthorizationsV1ResourceReviewPostExecute(r ApiApiAuthorizationsV1ResourceReviewPostRequest) (ResourceReview, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -14259,11 +14179,12 @@ func (a *DefaultApiService) ApiAuthorizationsV1ResourceReviewPostExecute(r ApiAp } type ApiApiAuthorizationsV1SelfAccessReviewPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi selfAccessReview *SelfAccessReview } +// Self access review data func (r ApiApiAuthorizationsV1SelfAccessReviewPostRequest) SelfAccessReview(selfAccessReview SelfAccessReview) ApiApiAuthorizationsV1SelfAccessReviewPostRequest { r.selfAccessReview = &selfAccessReview return r @@ -14274,21 +14195,20 @@ func (r ApiApiAuthorizationsV1SelfAccessReviewPostRequest) Execute() (AccessRevi } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return AccessReviewResponse - */ +// Execute executes the request +// @return AccessReviewResponse func (a *DefaultApiService) ApiAuthorizationsV1SelfAccessReviewPostExecute(r ApiApiAuthorizationsV1SelfAccessReviewPostRequest) (AccessReviewResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -14419,11 +14339,12 @@ func (a *DefaultApiService) ApiAuthorizationsV1SelfAccessReviewPostExecute(r Api } type ApiApiAuthorizationsV1SelfResourceReviewPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi selfResourceReviewRequest *SelfResourceReviewRequest } +// Self resource review data func (r ApiApiAuthorizationsV1SelfResourceReviewPostRequest) SelfResourceReviewRequest(selfResourceReviewRequest SelfResourceReviewRequest) ApiApiAuthorizationsV1SelfResourceReviewPostRequest { r.selfResourceReviewRequest = &selfResourceReviewRequest return r @@ -14434,21 +14355,20 @@ func (r ApiApiAuthorizationsV1SelfResourceReviewPostRequest) Execute() (SelfReso } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return SelfResourceReview - */ +// Execute executes the request +// @return SelfResourceReview func (a *DefaultApiService) ApiAuthorizationsV1SelfResourceReviewPostExecute(r ApiApiAuthorizationsV1SelfResourceReviewPostRequest) (SelfResourceReview, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -14579,11 +14499,12 @@ func (a *DefaultApiService) ApiAuthorizationsV1SelfResourceReviewPostExecute(r A } type ApiApiAuthorizationsV1SelfTermsReviewPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi selfTermsReview *SelfTermsReview } +// Data to check self terms for func (r ApiApiAuthorizationsV1SelfTermsReviewPostRequest) SelfTermsReview(selfTermsReview SelfTermsReview) ApiApiAuthorizationsV1SelfTermsReviewPostRequest { r.selfTermsReview = &selfTermsReview return r @@ -14594,21 +14515,20 @@ func (r ApiApiAuthorizationsV1SelfTermsReviewPostRequest) Execute() (TermsReview } /* - * 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 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 *DefaultApiService) ApiAuthorizationsV1SelfTermsReviewPost(ctx _context.Context) ApiApiAuthorizationsV1SelfTermsReviewPostRequest { return ApiApiAuthorizationsV1SelfTermsReviewPostRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } -/* - * Execute executes the request - * @return TermsReviewResponse - */ +// Execute executes the request +// @return TermsReviewResponse func (a *DefaultApiService) ApiAuthorizationsV1SelfTermsReviewPostExecute(r ApiApiAuthorizationsV1SelfTermsReviewPostRequest) (TermsReviewResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -14739,11 +14659,12 @@ func (a *DefaultApiService) ApiAuthorizationsV1SelfTermsReviewPostExecute(r ApiA } type ApiApiAuthorizationsV1TermsReviewPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi termsReview *TermsReview } +// Data to check terms for func (r ApiApiAuthorizationsV1TermsReviewPostRequest) TermsReview(termsReview TermsReview) ApiApiAuthorizationsV1TermsReviewPostRequest { r.termsReview = &termsReview return r @@ -14754,21 +14675,20 @@ func (r ApiApiAuthorizationsV1TermsReviewPostRequest) Execute() (TermsReviewResp } /* - * 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 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, + ctx: ctx, } } -/* - * Execute executes the request - * @return TermsReviewResponse - */ +// Execute executes the request +// @return TermsReviewResponse func (a *DefaultApiService) ApiAuthorizationsV1TermsReviewPostExecute(r ApiApiAuthorizationsV1TermsReviewPostRequest) (TermsReviewResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost diff --git a/pkg/api/ams/amsclient/client.go b/pkg/apis/ams/amsclient/client.go similarity index 97% rename from pkg/api/ams/amsclient/client.go rename to pkg/apis/ams/amsclient/client.go index 2ebbd75e6..ec9556b79 100644 --- a/pkg/api/ams/amsclient/client.go +++ b/pkg/apis/ams/amsclient/client.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -18,6 +18,7 @@ import ( "errors" "fmt" "io" + "io/ioutil" "log" "mime/multipart" "net/http" @@ -100,7 +101,7 @@ func selectHeaderAccept(accepts []string) string { return strings.Join(accepts, ",") } -// contains is a case insenstive match, finding needle in a haystack +// 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) { @@ -359,6 +360,18 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err *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) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } if xmlCheck.MatchString(contentType) { if err = xml.Unmarshal(b, v); err != nil { return err diff --git a/pkg/api/ams/amsclient/configuration.go b/pkg/apis/ams/amsclient/configuration.go similarity index 93% rename from pkg/api/ams/amsclient/configuration.go rename to pkg/apis/ams/amsclient/configuration.go index 9d7e896d0..ce8236ea7 100644 --- a/pkg/api/ams/amsclient/configuration.go +++ b/pkg/apis/ams/amsclient/configuration.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -77,9 +77,9 @@ type ServerVariable struct { // ServerConfiguration stores the information about a server type ServerConfiguration struct { - URL string + URL string Description string - Variables map[string]ServerVariable + Variables map[string]ServerVariable } // ServerConfigurations stores multiple ServerConfiguration items @@ -100,24 +100,25 @@ type Configuration struct { // 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{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ { - URL: "https://api.openshift.com", + URL: "https://api.openshift.com", Description: "Main (production) server", }, { - URL: "https://api.stage.openshift.com", + URL: "https://api.stage.openshift.com", Description: "Staging server", }, { - URL: "", + URL: "", Description: "current domain", }, }, - OperationServers: map[string]ServerConfigurations{}, + OperationServers: map[string]ServerConfigurations{ + }, } return cfg } diff --git a/pkg/api/ams/amsclient/default_api_mock.go b/pkg/apis/ams/amsclient/default_api_mock.go similarity index 100% rename from pkg/api/ams/amsclient/default_api_mock.go rename to pkg/apis/ams/amsclient/default_api_mock.go diff --git a/pkg/api/ams/amsclient/docs/AccessReview.md b/pkg/apis/ams/amsclient/docs/AccessReview.md similarity index 100% rename from pkg/api/ams/amsclient/docs/AccessReview.md rename to pkg/apis/ams/amsclient/docs/AccessReview.md diff --git a/pkg/api/ams/amsclient/docs/AccessReviewResponse.md b/pkg/apis/ams/amsclient/docs/AccessReviewResponse.md similarity index 100% rename from pkg/api/ams/amsclient/docs/AccessReviewResponse.md rename to pkg/apis/ams/amsclient/docs/AccessReviewResponse.md diff --git a/pkg/api/ams/amsclient/docs/AccessTokenCfg.md b/pkg/apis/ams/amsclient/docs/AccessTokenCfg.md similarity index 100% rename from pkg/api/ams/amsclient/docs/AccessTokenCfg.md rename to pkg/apis/ams/amsclient/docs/AccessTokenCfg.md diff --git a/pkg/api/ams/amsclient/docs/Account.md b/pkg/apis/ams/amsclient/docs/Account.md similarity index 100% rename from pkg/api/ams/amsclient/docs/Account.md rename to pkg/apis/ams/amsclient/docs/Account.md diff --git a/pkg/api/ams/amsclient/docs/AccountAllOf.md b/pkg/apis/ams/amsclient/docs/AccountAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/AccountAllOf.md rename to pkg/apis/ams/amsclient/docs/AccountAllOf.md diff --git a/pkg/api/ams/amsclient/docs/AccountList.md b/pkg/apis/ams/amsclient/docs/AccountList.md similarity index 100% rename from pkg/api/ams/amsclient/docs/AccountList.md rename to pkg/apis/ams/amsclient/docs/AccountList.md diff --git a/pkg/api/ams/amsclient/docs/AccountListAllOf.md b/pkg/apis/ams/amsclient/docs/AccountListAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/AccountListAllOf.md rename to pkg/apis/ams/amsclient/docs/AccountListAllOf.md diff --git a/pkg/api/ams/amsclient/docs/AccountPatchRequest.md b/pkg/apis/ams/amsclient/docs/AccountPatchRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/AccountPatchRequest.md rename to pkg/apis/ams/amsclient/docs/AccountPatchRequest.md diff --git a/pkg/api/ams/amsclient/docs/AccountReference.md b/pkg/apis/ams/amsclient/docs/AccountReference.md similarity index 100% rename from pkg/api/ams/amsclient/docs/AccountReference.md rename to pkg/apis/ams/amsclient/docs/AccountReference.md diff --git a/pkg/api/ams/amsclient/docs/AccountReferenceAllOf.md b/pkg/apis/ams/amsclient/docs/AccountReferenceAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/AccountReferenceAllOf.md rename to pkg/apis/ams/amsclient/docs/AccountReferenceAllOf.md diff --git a/pkg/api/ams/amsclient/docs/Capability.md b/pkg/apis/ams/amsclient/docs/Capability.md similarity index 100% rename from pkg/api/ams/amsclient/docs/Capability.md rename to pkg/apis/ams/amsclient/docs/Capability.md diff --git a/pkg/api/ams/amsclient/docs/CapabilityAllOf.md b/pkg/apis/ams/amsclient/docs/CapabilityAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/CapabilityAllOf.md rename to pkg/apis/ams/amsclient/docs/CapabilityAllOf.md diff --git a/pkg/api/ams/amsclient/docs/CapabilityReview.md b/pkg/apis/ams/amsclient/docs/CapabilityReview.md similarity index 100% rename from pkg/api/ams/amsclient/docs/CapabilityReview.md rename to pkg/apis/ams/amsclient/docs/CapabilityReview.md diff --git a/pkg/api/ams/amsclient/docs/CapabilityReviewRequest.md b/pkg/apis/ams/amsclient/docs/CapabilityReviewRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/CapabilityReviewRequest.md rename to pkg/apis/ams/amsclient/docs/CapabilityReviewRequest.md diff --git a/pkg/api/ams/amsclient/docs/ClusterAuthorizationRequest.md b/pkg/apis/ams/amsclient/docs/ClusterAuthorizationRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ClusterAuthorizationRequest.md rename to pkg/apis/ams/amsclient/docs/ClusterAuthorizationRequest.md diff --git a/pkg/api/ams/amsclient/docs/ClusterAuthorizationResponse.md b/pkg/apis/ams/amsclient/docs/ClusterAuthorizationResponse.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ClusterAuthorizationResponse.md rename to pkg/apis/ams/amsclient/docs/ClusterAuthorizationResponse.md diff --git a/pkg/api/ams/amsclient/docs/ClusterMetricsNodes.md b/pkg/apis/ams/amsclient/docs/ClusterMetricsNodes.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ClusterMetricsNodes.md rename to pkg/apis/ams/amsclient/docs/ClusterMetricsNodes.md diff --git a/pkg/api/ams/amsclient/docs/ClusterRegistrationRequest.md b/pkg/apis/ams/amsclient/docs/ClusterRegistrationRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ClusterRegistrationRequest.md rename to pkg/apis/ams/amsclient/docs/ClusterRegistrationRequest.md diff --git a/pkg/api/ams/amsclient/docs/ClusterRegistrationResponse.md b/pkg/apis/ams/amsclient/docs/ClusterRegistrationResponse.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ClusterRegistrationResponse.md rename to pkg/apis/ams/amsclient/docs/ClusterRegistrationResponse.md diff --git a/pkg/api/ams/amsclient/docs/ClusterResource.md b/pkg/apis/ams/amsclient/docs/ClusterResource.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ClusterResource.md rename to pkg/apis/ams/amsclient/docs/ClusterResource.md diff --git a/pkg/api/ams/amsclient/docs/ClusterResourceTotal.md b/pkg/apis/ams/amsclient/docs/ClusterResourceTotal.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ClusterResourceTotal.md rename to pkg/apis/ams/amsclient/docs/ClusterResourceTotal.md diff --git a/pkg/api/ams/amsclient/docs/ClusterUpgrade.md b/pkg/apis/ams/amsclient/docs/ClusterUpgrade.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ClusterUpgrade.md rename to pkg/apis/ams/amsclient/docs/ClusterUpgrade.md diff --git a/pkg/api/ams/amsclient/docs/DefaultApi.md b/pkg/apis/ams/amsclient/docs/DefaultApi.md similarity index 100% rename from pkg/api/ams/amsclient/docs/DefaultApi.md rename to pkg/apis/ams/amsclient/docs/DefaultApi.md diff --git a/pkg/api/ams/amsclient/docs/EphemeralResourceQuota.md b/pkg/apis/ams/amsclient/docs/EphemeralResourceQuota.md similarity index 100% rename from pkg/api/ams/amsclient/docs/EphemeralResourceQuota.md rename to pkg/apis/ams/amsclient/docs/EphemeralResourceQuota.md diff --git a/pkg/api/ams/amsclient/docs/Error.md b/pkg/apis/ams/amsclient/docs/Error.md similarity index 100% rename from pkg/api/ams/amsclient/docs/Error.md rename to pkg/apis/ams/amsclient/docs/Error.md diff --git a/pkg/api/ams/amsclient/docs/ErrorAllOf.md b/pkg/apis/ams/amsclient/docs/ErrorAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ErrorAllOf.md rename to pkg/apis/ams/amsclient/docs/ErrorAllOf.md diff --git a/pkg/api/ams/amsclient/docs/ErrorList.md b/pkg/apis/ams/amsclient/docs/ErrorList.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ErrorList.md rename to pkg/apis/ams/amsclient/docs/ErrorList.md diff --git a/pkg/api/ams/amsclient/docs/ErrorListAllOf.md b/pkg/apis/ams/amsclient/docs/ErrorListAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ErrorListAllOf.md rename to pkg/apis/ams/amsclient/docs/ErrorListAllOf.md diff --git a/pkg/api/ams/amsclient/docs/ExcessResource.md b/pkg/apis/ams/amsclient/docs/ExcessResource.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ExcessResource.md rename to pkg/apis/ams/amsclient/docs/ExcessResource.md diff --git a/pkg/api/ams/amsclient/docs/ExcessResourceAllOf.md b/pkg/apis/ams/amsclient/docs/ExcessResourceAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ExcessResourceAllOf.md rename to pkg/apis/ams/amsclient/docs/ExcessResourceAllOf.md diff --git a/pkg/api/ams/amsclient/docs/ExportControlReview.md b/pkg/apis/ams/amsclient/docs/ExportControlReview.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ExportControlReview.md rename to pkg/apis/ams/amsclient/docs/ExportControlReview.md diff --git a/pkg/api/ams/amsclient/docs/ExportControlReviewRequest.md b/pkg/apis/ams/amsclient/docs/ExportControlReviewRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ExportControlReviewRequest.md rename to pkg/apis/ams/amsclient/docs/ExportControlReviewRequest.md diff --git a/pkg/api/ams/amsclient/docs/FeatureToggle.md b/pkg/apis/ams/amsclient/docs/FeatureToggle.md similarity index 100% rename from pkg/api/ams/amsclient/docs/FeatureToggle.md rename to pkg/apis/ams/amsclient/docs/FeatureToggle.md diff --git a/pkg/api/ams/amsclient/docs/FeatureToggleAllOf.md b/pkg/apis/ams/amsclient/docs/FeatureToggleAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/FeatureToggleAllOf.md rename to pkg/apis/ams/amsclient/docs/FeatureToggleAllOf.md diff --git a/pkg/api/ams/amsclient/docs/FeatureToggleQueryRequest.md b/pkg/apis/ams/amsclient/docs/FeatureToggleQueryRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/FeatureToggleQueryRequest.md rename to pkg/apis/ams/amsclient/docs/FeatureToggleQueryRequest.md diff --git a/pkg/api/ams/amsclient/docs/FeatureToggleQueryRequestAllOf.md b/pkg/apis/ams/amsclient/docs/FeatureToggleQueryRequestAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/FeatureToggleQueryRequestAllOf.md rename to pkg/apis/ams/amsclient/docs/FeatureToggleQueryRequestAllOf.md diff --git a/pkg/api/ams/amsclient/docs/Label.md b/pkg/apis/ams/amsclient/docs/Label.md similarity index 100% rename from pkg/api/ams/amsclient/docs/Label.md rename to pkg/apis/ams/amsclient/docs/Label.md diff --git a/pkg/api/ams/amsclient/docs/LabelAllOf.md b/pkg/apis/ams/amsclient/docs/LabelAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/LabelAllOf.md rename to pkg/apis/ams/amsclient/docs/LabelAllOf.md diff --git a/pkg/api/ams/amsclient/docs/LabelList.md b/pkg/apis/ams/amsclient/docs/LabelList.md similarity index 100% rename from pkg/api/ams/amsclient/docs/LabelList.md rename to pkg/apis/ams/amsclient/docs/LabelList.md diff --git a/pkg/api/ams/amsclient/docs/LabelListAllOf.md b/pkg/apis/ams/amsclient/docs/LabelListAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/LabelListAllOf.md rename to pkg/apis/ams/amsclient/docs/LabelListAllOf.md diff --git a/pkg/api/ams/amsclient/docs/List.md b/pkg/apis/ams/amsclient/docs/List.md similarity index 100% rename from pkg/api/ams/amsclient/docs/List.md rename to pkg/apis/ams/amsclient/docs/List.md diff --git a/pkg/api/ams/amsclient/docs/Metric.md b/pkg/apis/ams/amsclient/docs/Metric.md similarity index 100% rename from pkg/api/ams/amsclient/docs/Metric.md rename to pkg/apis/ams/amsclient/docs/Metric.md diff --git a/pkg/api/ams/amsclient/docs/MetricAllOf.md b/pkg/apis/ams/amsclient/docs/MetricAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/MetricAllOf.md rename to pkg/apis/ams/amsclient/docs/MetricAllOf.md diff --git a/pkg/api/ams/amsclient/docs/MetricsList.md b/pkg/apis/ams/amsclient/docs/MetricsList.md similarity index 100% rename from pkg/api/ams/amsclient/docs/MetricsList.md rename to pkg/apis/ams/amsclient/docs/MetricsList.md diff --git a/pkg/api/ams/amsclient/docs/MetricsListAllOf.md b/pkg/apis/ams/amsclient/docs/MetricsListAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/MetricsListAllOf.md rename to pkg/apis/ams/amsclient/docs/MetricsListAllOf.md diff --git a/pkg/api/ams/amsclient/docs/NotificationContactCreateRequest.md b/pkg/apis/ams/amsclient/docs/NotificationContactCreateRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/NotificationContactCreateRequest.md rename to pkg/apis/ams/amsclient/docs/NotificationContactCreateRequest.md diff --git a/pkg/api/ams/amsclient/docs/NotificationRequest.md b/pkg/apis/ams/amsclient/docs/NotificationRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/NotificationRequest.md rename to pkg/apis/ams/amsclient/docs/NotificationRequest.md diff --git a/pkg/api/ams/amsclient/docs/ObjectReference.md b/pkg/apis/ams/amsclient/docs/ObjectReference.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ObjectReference.md rename to pkg/apis/ams/amsclient/docs/ObjectReference.md diff --git a/pkg/api/ams/amsclient/docs/OneMetric.md b/pkg/apis/ams/amsclient/docs/OneMetric.md similarity index 100% rename from pkg/api/ams/amsclient/docs/OneMetric.md rename to pkg/apis/ams/amsclient/docs/OneMetric.md diff --git a/pkg/api/ams/amsclient/docs/Organization.md b/pkg/apis/ams/amsclient/docs/Organization.md similarity index 100% rename from pkg/api/ams/amsclient/docs/Organization.md rename to pkg/apis/ams/amsclient/docs/Organization.md diff --git a/pkg/api/ams/amsclient/docs/OrganizationAllOf.md b/pkg/apis/ams/amsclient/docs/OrganizationAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/OrganizationAllOf.md rename to pkg/apis/ams/amsclient/docs/OrganizationAllOf.md diff --git a/pkg/api/ams/amsclient/docs/OrganizationList.md b/pkg/apis/ams/amsclient/docs/OrganizationList.md similarity index 100% rename from pkg/api/ams/amsclient/docs/OrganizationList.md rename to pkg/apis/ams/amsclient/docs/OrganizationList.md diff --git a/pkg/api/ams/amsclient/docs/OrganizationListAllOf.md b/pkg/apis/ams/amsclient/docs/OrganizationListAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/OrganizationListAllOf.md rename to pkg/apis/ams/amsclient/docs/OrganizationListAllOf.md diff --git a/pkg/api/ams/amsclient/docs/OrganizationPatchRequest.md b/pkg/apis/ams/amsclient/docs/OrganizationPatchRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/OrganizationPatchRequest.md rename to pkg/apis/ams/amsclient/docs/OrganizationPatchRequest.md diff --git a/pkg/api/ams/amsclient/docs/Permission.md b/pkg/apis/ams/amsclient/docs/Permission.md similarity index 100% rename from pkg/api/ams/amsclient/docs/Permission.md rename to pkg/apis/ams/amsclient/docs/Permission.md diff --git a/pkg/api/ams/amsclient/docs/PermissionAllOf.md b/pkg/apis/ams/amsclient/docs/PermissionAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/PermissionAllOf.md rename to pkg/apis/ams/amsclient/docs/PermissionAllOf.md diff --git a/pkg/api/ams/amsclient/docs/PermissionList.md b/pkg/apis/ams/amsclient/docs/PermissionList.md similarity index 100% rename from pkg/api/ams/amsclient/docs/PermissionList.md rename to pkg/apis/ams/amsclient/docs/PermissionList.md diff --git a/pkg/api/ams/amsclient/docs/PermissionListAllOf.md b/pkg/apis/ams/amsclient/docs/PermissionListAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/PermissionListAllOf.md rename to pkg/apis/ams/amsclient/docs/PermissionListAllOf.md diff --git a/pkg/api/ams/amsclient/docs/Plan.md b/pkg/apis/ams/amsclient/docs/Plan.md similarity index 100% rename from pkg/api/ams/amsclient/docs/Plan.md rename to pkg/apis/ams/amsclient/docs/Plan.md diff --git a/pkg/api/ams/amsclient/docs/PlanAllOf.md b/pkg/apis/ams/amsclient/docs/PlanAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/PlanAllOf.md rename to pkg/apis/ams/amsclient/docs/PlanAllOf.md diff --git a/pkg/api/ams/amsclient/docs/PlanList.md b/pkg/apis/ams/amsclient/docs/PlanList.md similarity index 100% rename from pkg/api/ams/amsclient/docs/PlanList.md rename to pkg/apis/ams/amsclient/docs/PlanList.md diff --git a/pkg/api/ams/amsclient/docs/PlanListAllOf.md b/pkg/apis/ams/amsclient/docs/PlanListAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/PlanListAllOf.md rename to pkg/apis/ams/amsclient/docs/PlanListAllOf.md diff --git a/pkg/api/ams/amsclient/docs/PullSecretRequest.md b/pkg/apis/ams/amsclient/docs/PullSecretRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/PullSecretRequest.md rename to pkg/apis/ams/amsclient/docs/PullSecretRequest.md diff --git a/pkg/api/ams/amsclient/docs/QuotaCost.md b/pkg/apis/ams/amsclient/docs/QuotaCost.md similarity index 100% rename from pkg/api/ams/amsclient/docs/QuotaCost.md rename to pkg/apis/ams/amsclient/docs/QuotaCost.md diff --git a/pkg/api/ams/amsclient/docs/QuotaCostAllOf.md b/pkg/apis/ams/amsclient/docs/QuotaCostAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/QuotaCostAllOf.md rename to pkg/apis/ams/amsclient/docs/QuotaCostAllOf.md diff --git a/pkg/api/ams/amsclient/docs/QuotaCostList.md b/pkg/apis/ams/amsclient/docs/QuotaCostList.md similarity index 100% rename from pkg/api/ams/amsclient/docs/QuotaCostList.md rename to pkg/apis/ams/amsclient/docs/QuotaCostList.md diff --git a/pkg/api/ams/amsclient/docs/QuotaCostListAllOf.md b/pkg/apis/ams/amsclient/docs/QuotaCostListAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/QuotaCostListAllOf.md rename to pkg/apis/ams/amsclient/docs/QuotaCostListAllOf.md diff --git a/pkg/api/ams/amsclient/docs/QuotaSummary.md b/pkg/apis/ams/amsclient/docs/QuotaSummary.md similarity index 100% rename from pkg/api/ams/amsclient/docs/QuotaSummary.md rename to pkg/apis/ams/amsclient/docs/QuotaSummary.md diff --git a/pkg/api/ams/amsclient/docs/QuotaSummaryAllOf.md b/pkg/apis/ams/amsclient/docs/QuotaSummaryAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/QuotaSummaryAllOf.md rename to pkg/apis/ams/amsclient/docs/QuotaSummaryAllOf.md diff --git a/pkg/api/ams/amsclient/docs/QuotaSummaryList.md b/pkg/apis/ams/amsclient/docs/QuotaSummaryList.md similarity index 100% rename from pkg/api/ams/amsclient/docs/QuotaSummaryList.md rename to pkg/apis/ams/amsclient/docs/QuotaSummaryList.md diff --git a/pkg/api/ams/amsclient/docs/QuotaSummaryListAllOf.md b/pkg/apis/ams/amsclient/docs/QuotaSummaryListAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/QuotaSummaryListAllOf.md rename to pkg/apis/ams/amsclient/docs/QuotaSummaryListAllOf.md diff --git a/pkg/api/ams/amsclient/docs/Registry.md b/pkg/apis/ams/amsclient/docs/Registry.md similarity index 100% rename from pkg/api/ams/amsclient/docs/Registry.md rename to pkg/apis/ams/amsclient/docs/Registry.md diff --git a/pkg/api/ams/amsclient/docs/RegistryAllOf.md b/pkg/apis/ams/amsclient/docs/RegistryAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RegistryAllOf.md rename to pkg/apis/ams/amsclient/docs/RegistryAllOf.md diff --git a/pkg/api/ams/amsclient/docs/RegistryCreateRequest.md b/pkg/apis/ams/amsclient/docs/RegistryCreateRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RegistryCreateRequest.md rename to pkg/apis/ams/amsclient/docs/RegistryCreateRequest.md diff --git a/pkg/api/ams/amsclient/docs/RegistryCredential.md b/pkg/apis/ams/amsclient/docs/RegistryCredential.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RegistryCredential.md rename to pkg/apis/ams/amsclient/docs/RegistryCredential.md diff --git a/pkg/api/ams/amsclient/docs/RegistryCredentialAllOf.md b/pkg/apis/ams/amsclient/docs/RegistryCredentialAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RegistryCredentialAllOf.md rename to pkg/apis/ams/amsclient/docs/RegistryCredentialAllOf.md diff --git a/pkg/api/ams/amsclient/docs/RegistryCredentialList.md b/pkg/apis/ams/amsclient/docs/RegistryCredentialList.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RegistryCredentialList.md rename to pkg/apis/ams/amsclient/docs/RegistryCredentialList.md diff --git a/pkg/api/ams/amsclient/docs/RegistryCredentialListAllOf.md b/pkg/apis/ams/amsclient/docs/RegistryCredentialListAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RegistryCredentialListAllOf.md rename to pkg/apis/ams/amsclient/docs/RegistryCredentialListAllOf.md diff --git a/pkg/api/ams/amsclient/docs/RegistryCredentialPatchRequest.md b/pkg/apis/ams/amsclient/docs/RegistryCredentialPatchRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RegistryCredentialPatchRequest.md rename to pkg/apis/ams/amsclient/docs/RegistryCredentialPatchRequest.md diff --git a/pkg/api/ams/amsclient/docs/RegistryList.md b/pkg/apis/ams/amsclient/docs/RegistryList.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RegistryList.md rename to pkg/apis/ams/amsclient/docs/RegistryList.md diff --git a/pkg/api/ams/amsclient/docs/RegistryListAllOf.md b/pkg/apis/ams/amsclient/docs/RegistryListAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RegistryListAllOf.md rename to pkg/apis/ams/amsclient/docs/RegistryListAllOf.md diff --git a/pkg/api/ams/amsclient/docs/RegistryRequest.md b/pkg/apis/ams/amsclient/docs/RegistryRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RegistryRequest.md rename to pkg/apis/ams/amsclient/docs/RegistryRequest.md diff --git a/pkg/api/ams/amsclient/docs/RelatedResource.md b/pkg/apis/ams/amsclient/docs/RelatedResource.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RelatedResource.md rename to pkg/apis/ams/amsclient/docs/RelatedResource.md diff --git a/pkg/api/ams/amsclient/docs/RelatedResourceAllOf.md b/pkg/apis/ams/amsclient/docs/RelatedResourceAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RelatedResourceAllOf.md rename to pkg/apis/ams/amsclient/docs/RelatedResourceAllOf.md diff --git a/pkg/api/ams/amsclient/docs/ReservedResource.md b/pkg/apis/ams/amsclient/docs/ReservedResource.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ReservedResource.md rename to pkg/apis/ams/amsclient/docs/ReservedResource.md diff --git a/pkg/api/ams/amsclient/docs/ReservedResourceAllOf.md b/pkg/apis/ams/amsclient/docs/ReservedResourceAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ReservedResourceAllOf.md rename to pkg/apis/ams/amsclient/docs/ReservedResourceAllOf.md diff --git a/pkg/api/ams/amsclient/docs/ReservedResourceList.md b/pkg/apis/ams/amsclient/docs/ReservedResourceList.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ReservedResourceList.md rename to pkg/apis/ams/amsclient/docs/ReservedResourceList.md diff --git a/pkg/api/ams/amsclient/docs/ReservedResourceListAllOf.md b/pkg/apis/ams/amsclient/docs/ReservedResourceListAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ReservedResourceListAllOf.md rename to pkg/apis/ams/amsclient/docs/ReservedResourceListAllOf.md diff --git a/pkg/api/ams/amsclient/docs/ResourceQuota.md b/pkg/apis/ams/amsclient/docs/ResourceQuota.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ResourceQuota.md rename to pkg/apis/ams/amsclient/docs/ResourceQuota.md diff --git a/pkg/api/ams/amsclient/docs/ResourceQuotaAllOf.md b/pkg/apis/ams/amsclient/docs/ResourceQuotaAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ResourceQuotaAllOf.md rename to pkg/apis/ams/amsclient/docs/ResourceQuotaAllOf.md diff --git a/pkg/api/ams/amsclient/docs/ResourceQuotaList.md b/pkg/apis/ams/amsclient/docs/ResourceQuotaList.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ResourceQuotaList.md rename to pkg/apis/ams/amsclient/docs/ResourceQuotaList.md diff --git a/pkg/api/ams/amsclient/docs/ResourceQuotaListAllOf.md b/pkg/apis/ams/amsclient/docs/ResourceQuotaListAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ResourceQuotaListAllOf.md rename to pkg/apis/ams/amsclient/docs/ResourceQuotaListAllOf.md diff --git a/pkg/api/ams/amsclient/docs/ResourceQuotaRequest.md b/pkg/apis/ams/amsclient/docs/ResourceQuotaRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ResourceQuotaRequest.md rename to pkg/apis/ams/amsclient/docs/ResourceQuotaRequest.md diff --git a/pkg/api/ams/amsclient/docs/ResourceReview.md b/pkg/apis/ams/amsclient/docs/ResourceReview.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ResourceReview.md rename to pkg/apis/ams/amsclient/docs/ResourceReview.md diff --git a/pkg/api/ams/amsclient/docs/ResourceReviewRequest.md b/pkg/apis/ams/amsclient/docs/ResourceReviewRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/ResourceReviewRequest.md rename to pkg/apis/ams/amsclient/docs/ResourceReviewRequest.md diff --git a/pkg/api/ams/amsclient/docs/Role.md b/pkg/apis/ams/amsclient/docs/Role.md similarity index 100% rename from pkg/api/ams/amsclient/docs/Role.md rename to pkg/apis/ams/amsclient/docs/Role.md diff --git a/pkg/api/ams/amsclient/docs/RoleAllOf.md b/pkg/apis/ams/amsclient/docs/RoleAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RoleAllOf.md rename to pkg/apis/ams/amsclient/docs/RoleAllOf.md diff --git a/pkg/api/ams/amsclient/docs/RoleBinding.md b/pkg/apis/ams/amsclient/docs/RoleBinding.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RoleBinding.md rename to pkg/apis/ams/amsclient/docs/RoleBinding.md diff --git a/pkg/api/ams/amsclient/docs/RoleBindingAllOf.md b/pkg/apis/ams/amsclient/docs/RoleBindingAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RoleBindingAllOf.md rename to pkg/apis/ams/amsclient/docs/RoleBindingAllOf.md diff --git a/pkg/api/ams/amsclient/docs/RoleBindingCreateRequest.md b/pkg/apis/ams/amsclient/docs/RoleBindingCreateRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RoleBindingCreateRequest.md rename to pkg/apis/ams/amsclient/docs/RoleBindingCreateRequest.md diff --git a/pkg/api/ams/amsclient/docs/RoleBindingList.md b/pkg/apis/ams/amsclient/docs/RoleBindingList.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RoleBindingList.md rename to pkg/apis/ams/amsclient/docs/RoleBindingList.md diff --git a/pkg/api/ams/amsclient/docs/RoleBindingListAllOf.md b/pkg/apis/ams/amsclient/docs/RoleBindingListAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RoleBindingListAllOf.md rename to pkg/apis/ams/amsclient/docs/RoleBindingListAllOf.md diff --git a/pkg/api/ams/amsclient/docs/RoleBindingRequest.md b/pkg/apis/ams/amsclient/docs/RoleBindingRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RoleBindingRequest.md rename to pkg/apis/ams/amsclient/docs/RoleBindingRequest.md diff --git a/pkg/api/ams/amsclient/docs/RoleList.md b/pkg/apis/ams/amsclient/docs/RoleList.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RoleList.md rename to pkg/apis/ams/amsclient/docs/RoleList.md diff --git a/pkg/api/ams/amsclient/docs/RoleListAllOf.md b/pkg/apis/ams/amsclient/docs/RoleListAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/RoleListAllOf.md rename to pkg/apis/ams/amsclient/docs/RoleListAllOf.md diff --git a/pkg/api/ams/amsclient/docs/SKU.md b/pkg/apis/ams/amsclient/docs/SKU.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SKU.md rename to pkg/apis/ams/amsclient/docs/SKU.md diff --git a/pkg/api/ams/amsclient/docs/SKUAllOf.md b/pkg/apis/ams/amsclient/docs/SKUAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SKUAllOf.md rename to pkg/apis/ams/amsclient/docs/SKUAllOf.md diff --git a/pkg/api/ams/amsclient/docs/SelfAccessReview.md b/pkg/apis/ams/amsclient/docs/SelfAccessReview.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SelfAccessReview.md rename to pkg/apis/ams/amsclient/docs/SelfAccessReview.md diff --git a/pkg/api/ams/amsclient/docs/SelfResourceReview.md b/pkg/apis/ams/amsclient/docs/SelfResourceReview.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SelfResourceReview.md rename to pkg/apis/ams/amsclient/docs/SelfResourceReview.md diff --git a/pkg/api/ams/amsclient/docs/SelfResourceReviewRequest.md b/pkg/apis/ams/amsclient/docs/SelfResourceReviewRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SelfResourceReviewRequest.md rename to pkg/apis/ams/amsclient/docs/SelfResourceReviewRequest.md diff --git a/pkg/api/ams/amsclient/docs/SelfTermsReview.md b/pkg/apis/ams/amsclient/docs/SelfTermsReview.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SelfTermsReview.md rename to pkg/apis/ams/amsclient/docs/SelfTermsReview.md diff --git a/pkg/api/ams/amsclient/docs/SkuList.md b/pkg/apis/ams/amsclient/docs/SkuList.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SkuList.md rename to pkg/apis/ams/amsclient/docs/SkuList.md diff --git a/pkg/api/ams/amsclient/docs/SkuListAllOf.md b/pkg/apis/ams/amsclient/docs/SkuListAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SkuListAllOf.md rename to pkg/apis/ams/amsclient/docs/SkuListAllOf.md diff --git a/pkg/api/ams/amsclient/docs/SkuRules.md b/pkg/apis/ams/amsclient/docs/SkuRules.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SkuRules.md rename to pkg/apis/ams/amsclient/docs/SkuRules.md diff --git a/pkg/api/ams/amsclient/docs/SkuRulesAllOf.md b/pkg/apis/ams/amsclient/docs/SkuRulesAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SkuRulesAllOf.md rename to pkg/apis/ams/amsclient/docs/SkuRulesAllOf.md diff --git a/pkg/api/ams/amsclient/docs/SkuRulesList.md b/pkg/apis/ams/amsclient/docs/SkuRulesList.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SkuRulesList.md rename to pkg/apis/ams/amsclient/docs/SkuRulesList.md diff --git a/pkg/api/ams/amsclient/docs/SkuRulesListAllOf.md b/pkg/apis/ams/amsclient/docs/SkuRulesListAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SkuRulesListAllOf.md rename to pkg/apis/ams/amsclient/docs/SkuRulesListAllOf.md diff --git a/pkg/api/ams/amsclient/docs/Subscription.md b/pkg/apis/ams/amsclient/docs/Subscription.md similarity index 100% rename from pkg/api/ams/amsclient/docs/Subscription.md rename to pkg/apis/ams/amsclient/docs/Subscription.md diff --git a/pkg/api/ams/amsclient/docs/SubscriptionAllOf.md b/pkg/apis/ams/amsclient/docs/SubscriptionAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SubscriptionAllOf.md rename to pkg/apis/ams/amsclient/docs/SubscriptionAllOf.md diff --git a/pkg/api/ams/amsclient/docs/SubscriptionCreateRequest.md b/pkg/apis/ams/amsclient/docs/SubscriptionCreateRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SubscriptionCreateRequest.md rename to pkg/apis/ams/amsclient/docs/SubscriptionCreateRequest.md diff --git a/pkg/api/ams/amsclient/docs/SubscriptionList.md b/pkg/apis/ams/amsclient/docs/SubscriptionList.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SubscriptionList.md rename to pkg/apis/ams/amsclient/docs/SubscriptionList.md diff --git a/pkg/api/ams/amsclient/docs/SubscriptionListAllOf.md b/pkg/apis/ams/amsclient/docs/SubscriptionListAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SubscriptionListAllOf.md rename to pkg/apis/ams/amsclient/docs/SubscriptionListAllOf.md diff --git a/pkg/api/ams/amsclient/docs/SubscriptionPatchRequest.md b/pkg/apis/ams/amsclient/docs/SubscriptionPatchRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SubscriptionPatchRequest.md rename to pkg/apis/ams/amsclient/docs/SubscriptionPatchRequest.md diff --git a/pkg/api/ams/amsclient/docs/Summary.md b/pkg/apis/ams/amsclient/docs/Summary.md similarity index 100% rename from pkg/api/ams/amsclient/docs/Summary.md rename to pkg/apis/ams/amsclient/docs/Summary.md diff --git a/pkg/api/ams/amsclient/docs/SummaryAllOf.md b/pkg/apis/ams/amsclient/docs/SummaryAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SummaryAllOf.md rename to pkg/apis/ams/amsclient/docs/SummaryAllOf.md diff --git a/pkg/api/ams/amsclient/docs/SummaryMetrics.md b/pkg/apis/ams/amsclient/docs/SummaryMetrics.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SummaryMetrics.md rename to pkg/apis/ams/amsclient/docs/SummaryMetrics.md diff --git a/pkg/api/ams/amsclient/docs/SummaryMetricsAllOf.md b/pkg/apis/ams/amsclient/docs/SummaryMetricsAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SummaryMetricsAllOf.md rename to pkg/apis/ams/amsclient/docs/SummaryMetricsAllOf.md diff --git a/pkg/api/ams/amsclient/docs/SummaryVector.md b/pkg/apis/ams/amsclient/docs/SummaryVector.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SummaryVector.md rename to pkg/apis/ams/amsclient/docs/SummaryVector.md diff --git a/pkg/api/ams/amsclient/docs/SummaryVectorAllOf.md b/pkg/apis/ams/amsclient/docs/SummaryVectorAllOf.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SummaryVectorAllOf.md rename to pkg/apis/ams/amsclient/docs/SummaryVectorAllOf.md diff --git a/pkg/api/ams/amsclient/docs/SupportCasesCreatedResponse.md b/pkg/apis/ams/amsclient/docs/SupportCasesCreatedResponse.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SupportCasesCreatedResponse.md rename to pkg/apis/ams/amsclient/docs/SupportCasesCreatedResponse.md diff --git a/pkg/api/ams/amsclient/docs/SupportCasesRequest.md b/pkg/apis/ams/amsclient/docs/SupportCasesRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/SupportCasesRequest.md rename to pkg/apis/ams/amsclient/docs/SupportCasesRequest.md diff --git a/pkg/api/ams/amsclient/docs/TemplateParameter.md b/pkg/apis/ams/amsclient/docs/TemplateParameter.md similarity index 100% rename from pkg/api/ams/amsclient/docs/TemplateParameter.md rename to pkg/apis/ams/amsclient/docs/TemplateParameter.md diff --git a/pkg/api/ams/amsclient/docs/TermsReview.md b/pkg/apis/ams/amsclient/docs/TermsReview.md similarity index 100% rename from pkg/api/ams/amsclient/docs/TermsReview.md rename to pkg/apis/ams/amsclient/docs/TermsReview.md diff --git a/pkg/api/ams/amsclient/docs/TermsReviewResponse.md b/pkg/apis/ams/amsclient/docs/TermsReviewResponse.md similarity index 100% rename from pkg/api/ams/amsclient/docs/TermsReviewResponse.md rename to pkg/apis/ams/amsclient/docs/TermsReviewResponse.md diff --git a/pkg/api/ams/amsclient/docs/TokenAuthorizationRequest.md b/pkg/apis/ams/amsclient/docs/TokenAuthorizationRequest.md similarity index 100% rename from pkg/api/ams/amsclient/docs/TokenAuthorizationRequest.md rename to pkg/apis/ams/amsclient/docs/TokenAuthorizationRequest.md diff --git a/pkg/api/ams/amsclient/docs/TokenAuthorizationResponse.md b/pkg/apis/ams/amsclient/docs/TokenAuthorizationResponse.md similarity index 100% rename from pkg/api/ams/amsclient/docs/TokenAuthorizationResponse.md rename to pkg/apis/ams/amsclient/docs/TokenAuthorizationResponse.md diff --git a/pkg/api/ams/amsclient/git_push.sh b/pkg/apis/ams/amsclient/git_push.sh similarity index 85% rename from pkg/api/ams/amsclient/git_push.sh rename to pkg/apis/ams/amsclient/git_push.sh index 49e2bd4af..f53a75d4f 100644 --- a/pkg/api/ams/amsclient/git_push.sh +++ b/pkg/apis/ams/amsclient/git_push.sh @@ -1,8 +1,7 @@ -#!/usr/bin/env bash +#!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -set -uo pipefail -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 @@ -39,14 +38,14 @@ git add . git commit -m "$release_note" # Sets the new remote -git_remote=`git 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 + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git fi fi @@ -56,4 +55,3 @@ 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/pkg/api/ams/amsclient/model_access_review.go b/pkg/apis/ams/amsclient/model_access_review.go similarity index 93% rename from pkg/api/ams/amsclient/model_access_review.go rename to pkg/apis/ams/amsclient/model_access_review.go index 3195ca691..673abdaea 100644 --- a/pkg/api/ams/amsclient/model_access_review.go +++ b/pkg/apis/ams/amsclient/model_access_review.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,13 +16,13 @@ import ( // 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"` + 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 @@ -58,7 +58,7 @@ func (o *AccessReview) GetAccountUsername() string { // 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 { + if o == nil { return nil, false } return &o.AccountUsername, true @@ -82,7 +82,7 @@ func (o *AccessReview) GetAction() string { // 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 { + if o == nil { return nil, false } return &o.Action, true @@ -202,7 +202,7 @@ func (o *AccessReview) GetResourceType() string { // 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 { + if o == nil { return nil, false } return &o.ResourceType, true @@ -306,3 +306,5 @@ func (v *NullableAccessReview) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_access_review_response.go b/pkg/apis/ams/amsclient/model_access_review_response.go similarity index 95% rename from pkg/api/ams/amsclient/model_access_review_response.go rename to pkg/apis/ams/amsclient/model_access_review_response.go index 0fafd7ddd..f1c0e626f 100644 --- a/pkg/api/ams/amsclient/model_access_review_response.go +++ b/pkg/apis/ams/amsclient/model_access_review_response.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,13 +16,13 @@ import ( // 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"` + 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"` + ResourceType *string `json:"resource_type,omitempty"` SubscriptionId *string `json:"subscription_id,omitempty"` } @@ -121,7 +121,7 @@ func (o *AccessReviewResponse) GetAllowed() bool { // 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 { + if o == nil { return nil, false } return &o.Allowed, true @@ -356,3 +356,5 @@ func (v *NullableAccessReviewResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_access_token_cfg.go b/pkg/apis/ams/amsclient/model_access_token_cfg.go similarity index 95% rename from pkg/api/ams/amsclient/model_access_token_cfg.go rename to pkg/apis/ams/amsclient/model_access_token_cfg.go index 6f5b5c14c..50bbc145b 100644 --- a/pkg/api/ams/amsclient/model_access_token_cfg.go +++ b/pkg/apis/ams/amsclient/model_access_token_cfg.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -50,7 +50,7 @@ func (o *AccessTokenCfg) GetAuths() map[string]map[string]interface{} { // 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 { + if o == nil { return nil, false } return &o.Auths, true @@ -104,3 +104,5 @@ func (v *NullableAccessTokenCfg) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_account.go b/pkg/apis/ams/amsclient/model_account.go similarity index 93% rename from pkg/api/ams/amsclient/model_account.go rename to pkg/apis/ams/amsclient/model_account.go index b4e521170..4694272d0 100644 --- a/pkg/api/ams/amsclient/model_account.go +++ b/pkg/apis/ams/amsclient/model_account.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,23 +17,23 @@ import ( // 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"` - ServiceAccount *bool `json:"service_account,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - Username string `json:"username"` + 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"` + ServiceAccount *bool `json:"service_account,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Username string `json:"username"` } // NewAccount instantiates a new Account object @@ -587,7 +587,7 @@ func (o *Account) GetUsername() string { // 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 { + if o == nil { return nil, false } return &o.Username, true @@ -689,3 +689,5 @@ func (v *NullableAccount) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_account_all_of.go b/pkg/apis/ams/amsclient/model_account_all_of.go similarity index 93% rename from pkg/api/ams/amsclient/model_account_all_of.go rename to pkg/apis/ams/amsclient/model_account_all_of.go index 4ec3045da..42f695153 100644 --- a/pkg/api/ams/amsclient/model_account_all_of.go +++ b/pkg/apis/ams/amsclient/model_account_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,20 +17,20 @@ import ( // 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"` - ServiceAccount *bool `json:"service_account,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - Username string `json:"username"` + 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"` + ServiceAccount *bool `json:"service_account,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Username string `json:"username"` } // NewAccountAllOf instantiates a new AccountAllOf object @@ -488,7 +488,7 @@ func (o *AccountAllOf) GetUsername() string { // 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 { + if o == nil { return nil, false } return &o.Username, true @@ -581,3 +581,5 @@ func (v *NullableAccountAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_account_list.go b/pkg/apis/ams/amsclient/model_account_list.go similarity index 93% rename from pkg/api/ams/amsclient/model_account_list.go rename to pkg/apis/ams/amsclient/model_account_list.go index 2ac8e94f0..d3a366a1b 100644 --- a/pkg/api/ams/amsclient/model_account_list.go +++ b/pkg/apis/ams/amsclient/model_account_list.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // AccountList struct for AccountList type AccountList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Account `json:"items"` } @@ -58,7 +58,7 @@ func (o *AccountList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *AccountList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *AccountList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *AccountList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *AccountList) GetItems() []Account { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,3 +220,5 @@ func (v *NullableAccountList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_account_list_all_of.go b/pkg/apis/ams/amsclient/model_account_list_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_account_list_all_of.go rename to pkg/apis/ams/amsclient/model_account_list_all_of.go index 9aaeb306a..18dcd18c9 100644 --- a/pkg/api/ams/amsclient/model_account_list_all_of.go +++ b/pkg/apis/ams/amsclient/model_account_list_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullableAccountListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_account_patch_request.go b/pkg/apis/ams/amsclient/model_account_patch_request.go similarity index 95% rename from pkg/api/ams/amsclient/model_account_patch_request.go rename to pkg/apis/ams/amsclient/model_account_patch_request.go index b15a70de4..349653ba9 100644 --- a/pkg/api/ams/amsclient/model_account_patch_request.go +++ b/pkg/apis/ams/amsclient/model_account_patch_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,14 +16,14 @@ import ( // AccountPatchRequest struct for AccountPatchRequest type AccountPatchRequest struct { - BanCode *string `json:"ban_code,omitempty"` + 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"` + 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"` + ServiceAccount *bool `json:"service_account,omitempty"` } // NewAccountPatchRequest instantiates a new AccountPatchRequest object @@ -363,3 +363,5 @@ func (v *NullableAccountPatchRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_account_reference.go b/pkg/apis/ams/amsclient/model_account_reference.go similarity index 95% rename from pkg/api/ams/amsclient/model_account_reference.go rename to pkg/apis/ams/amsclient/model_account_reference.go index 97a2b5189..ca9280b23 100644 --- a/pkg/api/ams/amsclient/model_account_reference.go +++ b/pkg/apis/ams/amsclient/model_account_reference.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,11 +16,11 @@ import ( // 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"` + 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"` } @@ -291,3 +291,5 @@ func (v *NullableAccountReference) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_account_reference_all_of.go b/pkg/apis/ams/amsclient/model_account_reference_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_account_reference_all_of.go rename to pkg/apis/ams/amsclient/model_account_reference_all_of.go index 31ad49e3c..10b789d4d 100644 --- a/pkg/api/ams/amsclient/model_account_reference_all_of.go +++ b/pkg/apis/ams/amsclient/model_account_reference_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,8 +16,8 @@ import ( // AccountReferenceAllOf struct for AccountReferenceAllOf type AccountReferenceAllOf struct { - Email *string `json:"email,omitempty"` - Name *string `json:"name,omitempty"` + Email *string `json:"email,omitempty"` + Name *string `json:"name,omitempty"` Username *string `json:"username,omitempty"` } @@ -183,3 +183,5 @@ func (v *NullableAccountReferenceAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_capability.go b/pkg/apis/ams/amsclient/model_capability.go similarity index 93% rename from pkg/api/ams/amsclient/model_capability.go rename to pkg/apis/ams/amsclient/model_capability.go index b5ac46748..3db52590c 100644 --- a/pkg/api/ams/amsclient/model_capability.go +++ b/pkg/apis/ams/amsclient/model_capability.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,12 +16,12 @@ import ( // 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"` + 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 @@ -153,7 +153,7 @@ func (o *Capability) GetInherited() bool { // 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 { + if o == nil { return nil, false } return &o.Inherited, true @@ -177,7 +177,7 @@ func (o *Capability) GetName() string { // 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 { + if o == nil { return nil, false } return &o.Name, true @@ -201,7 +201,7 @@ func (o *Capability) GetValue() string { // 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 { + if o == nil { return nil, false } return &o.Value, true @@ -270,3 +270,5 @@ func (v *NullableCapability) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_capability_all_of.go b/pkg/apis/ams/amsclient/model_capability_all_of.go similarity index 93% rename from pkg/api/ams/amsclient/model_capability_all_of.go rename to pkg/apis/ams/amsclient/model_capability_all_of.go index 689a1b4c8..d204b4fee 100644 --- a/pkg/api/ams/amsclient/model_capability_all_of.go +++ b/pkg/apis/ams/amsclient/model_capability_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,9 +16,9 @@ import ( // CapabilityAllOf struct for CapabilityAllOf type CapabilityAllOf struct { - Inherited bool `json:"inherited"` - Name string `json:"name"` - Value string `json:"value"` + Inherited bool `json:"inherited"` + Name string `json:"name"` + Value string `json:"value"` } // NewCapabilityAllOf instantiates a new CapabilityAllOf object @@ -54,7 +54,7 @@ func (o *CapabilityAllOf) GetInherited() bool { // 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 { + if o == nil { return nil, false } return &o.Inherited, true @@ -78,7 +78,7 @@ func (o *CapabilityAllOf) GetName() string { // 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 { + if o == nil { return nil, false } return &o.Name, true @@ -102,7 +102,7 @@ func (o *CapabilityAllOf) GetValue() string { // 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 { + if o == nil { return nil, false } return &o.Value, true @@ -162,3 +162,5 @@ func (v *NullableCapabilityAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_capability_review.go b/pkg/apis/ams/amsclient/model_capability_review.go similarity index 95% rename from pkg/api/ams/amsclient/model_capability_review.go rename to pkg/apis/ams/amsclient/model_capability_review.go index e82f7c2cb..9e1614212 100644 --- a/pkg/api/ams/amsclient/model_capability_review.go +++ b/pkg/apis/ams/amsclient/model_capability_review.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -50,7 +50,7 @@ func (o *CapabilityReview) GetResult() string { // 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 { + if o == nil { return nil, false } return &o.Result, true @@ -104,3 +104,5 @@ func (v *NullableCapabilityReview) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_capability_review_request.go b/pkg/apis/ams/amsclient/model_capability_review_request.go similarity index 93% rename from pkg/api/ams/amsclient/model_capability_review_request.go rename to pkg/apis/ams/amsclient/model_capability_review_request.go index d824b7cf8..ce39a2b1c 100644 --- a/pkg/api/ams/amsclient/model_capability_review_request.go +++ b/pkg/apis/ams/amsclient/model_capability_review_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,12 +16,12 @@ import ( // 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"` + 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 @@ -57,7 +57,7 @@ func (o *CapabilityReviewRequest) GetAccountUsername() string { // 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 { + if o == nil { return nil, false } return &o.AccountUsername, true @@ -81,7 +81,7 @@ func (o *CapabilityReviewRequest) GetCapability() string { // 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 { + if o == nil { return nil, false } return &o.Capability, true @@ -201,7 +201,7 @@ func (o *CapabilityReviewRequest) GetType() string { // 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 { + if o == nil { return nil, false } return &o.Type, true @@ -270,3 +270,5 @@ func (v *NullableCapabilityReviewRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_cluster_authorization_request.go b/pkg/apis/ams/amsclient/model_cluster_authorization_request.go similarity index 93% rename from pkg/api/ams/amsclient/model_cluster_authorization_request.go rename to pkg/apis/ams/amsclient/model_cluster_authorization_request.go index 4ca594bce..db96aa41a 100644 --- a/pkg/api/ams/amsclient/model_cluster_authorization_request.go +++ b/pkg/apis/ams/amsclient/model_cluster_authorization_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,20 +16,20 @@ import ( // 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"` - Reserve *bool `json:"reserve,omitempty"` - Resources *[]ReservedResource `json:"resources,omitempty"` + 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"` + Reserve *bool `json:"reserve,omitempty"` + Resources *[]ReservedResource `json:"resources,omitempty"` } // NewClusterAuthorizationRequest instantiates a new ClusterAuthorizationRequest object @@ -68,7 +68,7 @@ func (o *ClusterAuthorizationRequest) GetAccountUsername() string { // 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 { + if o == nil { return nil, false } return &o.AccountUsername, true @@ -220,7 +220,7 @@ func (o *ClusterAuthorizationRequest) GetClusterId() string { // 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 { + if o == nil { return nil, false } return &o.ClusterId, true @@ -569,3 +569,5 @@ func (v *NullableClusterAuthorizationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_cluster_authorization_response.go b/pkg/apis/ams/amsclient/model_cluster_authorization_response.go similarity index 94% rename from pkg/api/ams/amsclient/model_cluster_authorization_response.go rename to pkg/apis/ams/amsclient/model_cluster_authorization_response.go index bb9a62e0c..6f06f4430 100644 --- a/pkg/api/ams/amsclient/model_cluster_authorization_response.go +++ b/pkg/apis/ams/amsclient/model_cluster_authorization_response.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // ClusterAuthorizationResponse struct for ClusterAuthorizationResponse type ClusterAuthorizationResponse struct { - Allowed bool `json:"allowed"` + Allowed bool `json:"allowed"` ExcessResources []ExcessResource `json:"excess_resources"` - OrganizationId *string `json:"organization_id,omitempty"` - Subscription *ObjectReference `json:"subscription,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + Subscription *ObjectReference `json:"subscription,omitempty"` } // NewClusterAuthorizationResponse instantiates a new ClusterAuthorizationResponse object @@ -54,7 +54,7 @@ func (o *ClusterAuthorizationResponse) GetAllowed() bool { // 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 { + if o == nil { return nil, false } return &o.Allowed, true @@ -78,7 +78,7 @@ func (o *ClusterAuthorizationResponse) GetExcessResources() []ExcessResource { // 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 { + if o == nil { return nil, false } return &o.ExcessResources, true @@ -205,3 +205,5 @@ func (v *NullableClusterAuthorizationResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_cluster_metrics_nodes.go b/pkg/apis/ams/amsclient/model_cluster_metrics_nodes.go similarity index 95% rename from pkg/api/ams/amsclient/model_cluster_metrics_nodes.go rename to pkg/apis/ams/amsclient/model_cluster_metrics_nodes.go index 1d7d7759f..1db267c03 100644 --- a/pkg/api/ams/amsclient/model_cluster_metrics_nodes.go +++ b/pkg/apis/ams/amsclient/model_cluster_metrics_nodes.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,9 +17,9 @@ import ( // 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"` + Infra *float64 `json:"infra,omitempty"` + Master *float64 `json:"master,omitempty"` + Total *float64 `json:"total,omitempty"` } // NewClusterMetricsNodes instantiates a new ClusterMetricsNodes object @@ -219,3 +219,5 @@ func (v *NullableClusterMetricsNodes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_cluster_registration_request.go b/pkg/apis/ams/amsclient/model_cluster_registration_request.go similarity index 96% rename from pkg/api/ams/amsclient/model_cluster_registration_request.go rename to pkg/apis/ams/amsclient/model_cluster_registration_request.go index ffcb0badd..9aac46e1b 100644 --- a/pkg/api/ams/amsclient/model_cluster_registration_request.go +++ b/pkg/apis/ams/amsclient/model_cluster_registration_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,7 +17,7 @@ import ( // ClusterRegistrationRequest struct for ClusterRegistrationRequest type ClusterRegistrationRequest struct { AuthorizationToken *string `json:"authorization_token,omitempty"` - ClusterId *string `json:"cluster_id,omitempty"` + ClusterId *string `json:"cluster_id,omitempty"` } // NewClusterRegistrationRequest instantiates a new ClusterRegistrationRequest object @@ -147,3 +147,5 @@ func (v *NullableClusterRegistrationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_cluster_registration_response.go b/pkg/apis/ams/amsclient/model_cluster_registration_response.go similarity index 96% rename from pkg/api/ams/amsclient/model_cluster_registration_response.go rename to pkg/apis/ams/amsclient/model_cluster_registration_response.go index cd3ad840e..c4d92a495 100644 --- a/pkg/api/ams/amsclient/model_cluster_registration_response.go +++ b/pkg/apis/ams/amsclient/model_cluster_registration_response.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,9 +16,9 @@ import ( // ClusterRegistrationResponse struct for ClusterRegistrationResponse type ClusterRegistrationResponse struct { - AccountId *string `json:"account_id,omitempty"` + AccountId *string `json:"account_id,omitempty"` AuthorizationToken *string `json:"authorization_token,omitempty"` - ClusterId *string `json:"cluster_id,omitempty"` + ClusterId *string `json:"cluster_id,omitempty"` // Cluster Registration expiration in Unix time ExpiresAt *string `json:"expires_at,omitempty"` } @@ -220,3 +220,5 @@ func (v *NullableClusterRegistrationResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_cluster_resource.go b/pkg/apis/ams/amsclient/model_cluster_resource.go similarity index 92% rename from pkg/api/ams/amsclient/model_cluster_resource.go rename to pkg/apis/ams/amsclient/model_cluster_resource.go index 752262247..2a47ea0ba 100644 --- a/pkg/api/ams/amsclient/model_cluster_resource.go +++ b/pkg/apis/ams/amsclient/model_cluster_resource.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,9 +17,9 @@ import ( // ClusterResource struct for ClusterResource type ClusterResource struct { - Total ClusterResourceTotal `json:"total"` - UpdatedTimestamp time.Time `json:"updated_timestamp"` - Used ClusterResourceTotal `json:"used"` + Total ClusterResourceTotal `json:"total"` + UpdatedTimestamp time.Time `json:"updated_timestamp"` + Used ClusterResourceTotal `json:"used"` } // NewClusterResource instantiates a new ClusterResource object @@ -55,7 +55,7 @@ func (o *ClusterResource) GetTotal() ClusterResourceTotal { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -79,7 +79,7 @@ func (o *ClusterResource) GetUpdatedTimestamp() time.Time { // 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 { + if o == nil { return nil, false } return &o.UpdatedTimestamp, true @@ -103,7 +103,7 @@ func (o *ClusterResource) GetUsed() ClusterResourceTotal { // 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 { + if o == nil { return nil, false } return &o.Used, true @@ -163,3 +163,5 @@ func (v *NullableClusterResource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_cluster_resource_total.go b/pkg/apis/ams/amsclient/model_cluster_resource_total.go similarity index 94% rename from pkg/api/ams/amsclient/model_cluster_resource_total.go rename to pkg/apis/ams/amsclient/model_cluster_resource_total.go index c49e86c63..e22526d60 100644 --- a/pkg/api/ams/amsclient/model_cluster_resource_total.go +++ b/pkg/apis/ams/amsclient/model_cluster_resource_total.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,7 +16,7 @@ import ( // ClusterResourceTotal struct for ClusterResourceTotal type ClusterResourceTotal struct { - Unit string `json:"unit"` + Unit string `json:"unit"` Value float64 `json:"value"` } @@ -52,7 +52,7 @@ func (o *ClusterResourceTotal) GetUnit() string { // 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 { + if o == nil { return nil, false } return &o.Unit, true @@ -76,7 +76,7 @@ func (o *ClusterResourceTotal) GetValue() float64 { // 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 { + if o == nil { return nil, false } return &o.Value, true @@ -133,3 +133,5 @@ func (v *NullableClusterResourceTotal) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_cluster_upgrade.go b/pkg/apis/ams/amsclient/model_cluster_upgrade.go similarity index 95% rename from pkg/api/ams/amsclient/model_cluster_upgrade.go rename to pkg/apis/ams/amsclient/model_cluster_upgrade.go index 102a363fd..e56cac4a3 100644 --- a/pkg/api/ams/amsclient/model_cluster_upgrade.go +++ b/pkg/apis/ams/amsclient/model_cluster_upgrade.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,10 +17,10 @@ import ( // ClusterUpgrade struct for ClusterUpgrade type ClusterUpgrade struct { - Available *bool `json:"available,omitempty"` - State *string `json:"state,omitempty"` + Available *bool `json:"available,omitempty"` + State *string `json:"state,omitempty"` UpdatedTimestamp *time.Time `json:"updated_timestamp,omitempty"` - Version *string `json:"version,omitempty"` + Version *string `json:"version,omitempty"` } // NewClusterUpgrade instantiates a new ClusterUpgrade object @@ -220,3 +220,5 @@ func (v *NullableClusterUpgrade) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_ephemeral_resource_quota.go b/pkg/apis/ams/amsclient/model_ephemeral_resource_quota.go similarity index 95% rename from pkg/api/ams/amsclient/model_ephemeral_resource_quota.go rename to pkg/apis/ams/amsclient/model_ephemeral_resource_quota.go index 60dd21d3f..75d82988c 100644 --- a/pkg/api/ams/amsclient/model_ephemeral_resource_quota.go +++ b/pkg/apis/ams/amsclient/model_ephemeral_resource_quota.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,13 +16,13 @@ import ( // EphemeralResourceQuota struct for EphemeralResourceQuota type EphemeralResourceQuota struct { - Allowed *int32 `json:"allowed,omitempty"` + Allowed *int32 `json:"allowed,omitempty"` 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"` + 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 @@ -327,3 +327,5 @@ func (v *NullableEphemeralResourceQuota) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_error.go b/pkg/apis/ams/amsclient/model_error.go similarity index 95% rename from pkg/api/ams/amsclient/model_error.go rename to pkg/apis/ams/amsclient/model_error.go index 10a6e3e22..0e3c6651f 100644 --- a/pkg/api/ams/amsclient/model_error.go +++ b/pkg/apis/ams/amsclient/model_error.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,12 +16,12 @@ import ( // 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"` + 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"` + Reason *string `json:"reason,omitempty"` } // NewError instantiates a new Error object @@ -291,3 +291,5 @@ func (v *NullableError) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_error_all_of.go b/pkg/apis/ams/amsclient/model_error_all_of.go similarity index 95% rename from pkg/api/ams/amsclient/model_error_all_of.go rename to pkg/apis/ams/amsclient/model_error_all_of.go index 89b62f961..015310ce4 100644 --- a/pkg/api/ams/amsclient/model_error_all_of.go +++ b/pkg/apis/ams/amsclient/model_error_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,9 +16,9 @@ import ( // ErrorAllOf struct for ErrorAllOf type ErrorAllOf struct { - Code *string `json:"code,omitempty"` + Code *string `json:"code,omitempty"` OperationId *string `json:"operation_id,omitempty"` - Reason *string `json:"reason,omitempty"` + Reason *string `json:"reason,omitempty"` } // NewErrorAllOf instantiates a new ErrorAllOf object @@ -183,3 +183,5 @@ func (v *NullableErrorAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_error_list.go b/pkg/apis/ams/amsclient/model_error_list.go similarity index 93% rename from pkg/api/ams/amsclient/model_error_list.go rename to pkg/apis/ams/amsclient/model_error_list.go index 1d8617f4f..fe3fec718 100644 --- a/pkg/api/ams/amsclient/model_error_list.go +++ b/pkg/apis/ams/amsclient/model_error_list.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // ErrorList struct for ErrorList type ErrorList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Error `json:"items"` } @@ -58,7 +58,7 @@ func (o *ErrorList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *ErrorList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *ErrorList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *ErrorList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *ErrorList) GetItems() []Error { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,3 +220,5 @@ func (v *NullableErrorList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_error_list_all_of.go b/pkg/apis/ams/amsclient/model_error_list_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_error_list_all_of.go rename to pkg/apis/ams/amsclient/model_error_list_all_of.go index ef89409a1..dffcd9cca 100644 --- a/pkg/api/ams/amsclient/model_error_list_all_of.go +++ b/pkg/apis/ams/amsclient/model_error_list_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullableErrorListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_excess_resource.go b/pkg/apis/ams/amsclient/model_excess_resource.go similarity index 94% rename from pkg/api/ams/amsclient/model_excess_resource.go rename to pkg/apis/ams/amsclient/model_excess_resource.go index 5e6c735fa..d88cf7f47 100644 --- a/pkg/api/ams/amsclient/model_excess_resource.go +++ b/pkg/apis/ams/amsclient/model_excess_resource.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,15 +16,15 @@ import ( // ExcessResource struct for ExcessResource type ExcessResource struct { - Href *string `json:"href,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` + 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"` + 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 @@ -218,7 +218,7 @@ func (o *ExcessResource) GetByoc() bool { // 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 { + if o == nil { return nil, false } return &o.Byoc, true @@ -392,3 +392,5 @@ func (v *NullableExcessResource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_excess_resource_all_of.go b/pkg/apis/ams/amsclient/model_excess_resource_all_of.go similarity index 94% rename from pkg/api/ams/amsclient/model_excess_resource_all_of.go rename to pkg/apis/ams/amsclient/model_excess_resource_all_of.go index 8cbb8e2f3..80d479ae4 100644 --- a/pkg/api/ams/amsclient/model_excess_resource_all_of.go +++ b/pkg/apis/ams/amsclient/model_excess_resource_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,11 +17,11 @@ import ( // 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"` + 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 @@ -119,7 +119,7 @@ func (o *ExcessResourceAllOf) GetByoc() bool { // 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 { + if o == nil { return nil, false } return &o.Byoc, true @@ -284,3 +284,5 @@ func (v *NullableExcessResourceAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_export_control_review.go b/pkg/apis/ams/amsclient/model_export_control_review.go similarity index 95% rename from pkg/api/ams/amsclient/model_export_control_review.go rename to pkg/apis/ams/amsclient/model_export_control_review.go index 12fc6870f..1d04d0d47 100644 --- a/pkg/api/ams/amsclient/model_export_control_review.go +++ b/pkg/apis/ams/amsclient/model_export_control_review.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -50,7 +50,7 @@ func (o *ExportControlReview) GetRestricted() bool { // 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 { + if o == nil { return nil, false } return &o.Restricted, true @@ -104,3 +104,5 @@ func (v *NullableExportControlReview) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_export_control_review_request.go b/pkg/apis/ams/amsclient/model_export_control_review_request.go similarity index 95% rename from pkg/api/ams/amsclient/model_export_control_review_request.go rename to pkg/apis/ams/amsclient/model_export_control_review_request.go index ff828f9ca..150f16687 100644 --- a/pkg/api/ams/amsclient/model_export_control_review_request.go +++ b/pkg/apis/ams/amsclient/model_export_control_review_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,7 +17,7 @@ import ( // ExportControlReviewRequest struct for ExportControlReviewRequest type ExportControlReviewRequest struct { AccountUsername string `json:"account_username"` - IgnoreCache *bool `json:"ignore_cache,omitempty"` + IgnoreCache *bool `json:"ignore_cache,omitempty"` } // NewExportControlReviewRequest instantiates a new ExportControlReviewRequest object @@ -51,7 +51,7 @@ func (o *ExportControlReviewRequest) GetAccountUsername() string { // 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 { + if o == nil { return nil, false } return &o.AccountUsername, true @@ -140,3 +140,5 @@ func (v *NullableExportControlReviewRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_feature_toggle.go b/pkg/apis/ams/amsclient/model_feature_toggle.go similarity index 94% rename from pkg/api/ams/amsclient/model_feature_toggle.go rename to pkg/apis/ams/amsclient/model_feature_toggle.go index 66c7c53c9..521be8aec 100644 --- a/pkg/api/ams/amsclient/model_feature_toggle.go +++ b/pkg/apis/ams/amsclient/model_feature_toggle.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // 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"` + 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 @@ -151,7 +151,7 @@ func (o *FeatureToggle) GetEnabled() bool { // 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 { + if o == nil { return nil, false } return &o.Enabled, true @@ -214,3 +214,5 @@ func (v *NullableFeatureToggle) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_feature_toggle_all_of.go b/pkg/apis/ams/amsclient/model_feature_toggle_all_of.go similarity index 95% rename from pkg/api/ams/amsclient/model_feature_toggle_all_of.go rename to pkg/apis/ams/amsclient/model_feature_toggle_all_of.go index e5243e477..c67745081 100644 --- a/pkg/api/ams/amsclient/model_feature_toggle_all_of.go +++ b/pkg/apis/ams/amsclient/model_feature_toggle_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -52,7 +52,7 @@ func (o *FeatureToggleAllOf) GetEnabled() bool { // 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 { + if o == nil { return nil, false } return &o.Enabled, true @@ -106,3 +106,5 @@ func (v *NullableFeatureToggleAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_feature_toggle_query_request.go b/pkg/apis/ams/amsclient/model_feature_toggle_query_request.go similarity index 95% rename from pkg/api/ams/amsclient/model_feature_toggle_query_request.go rename to pkg/apis/ams/amsclient/model_feature_toggle_query_request.go index 97fbc09ba..425746624 100644 --- a/pkg/api/ams/amsclient/model_feature_toggle_query_request.go +++ b/pkg/apis/ams/amsclient/model_feature_toggle_query_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -50,7 +50,7 @@ func (o *FeatureToggleQueryRequest) GetOrganizationId() string { // 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 { + if o == nil { return nil, false } return &o.OrganizationId, true @@ -104,3 +104,5 @@ func (v *NullableFeatureToggleQueryRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_feature_toggle_query_request_all_of.go b/pkg/apis/ams/amsclient/model_feature_toggle_query_request_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_feature_toggle_query_request_all_of.go rename to pkg/apis/ams/amsclient/model_feature_toggle_query_request_all_of.go index 4afc8a716..808061fb2 100644 --- a/pkg/api/ams/amsclient/model_feature_toggle_query_request_all_of.go +++ b/pkg/apis/ams/amsclient/model_feature_toggle_query_request_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -50,7 +50,7 @@ func (o *FeatureToggleQueryRequestAllOf) GetOrganizationId() string { // 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 { + if o == nil { return nil, false } return &o.OrganizationId, true @@ -104,3 +104,5 @@ func (v *NullableFeatureToggleQueryRequestAllOf) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_label.go b/pkg/apis/ams/amsclient/model_label.go similarity index 93% rename from pkg/api/ams/amsclient/model_label.go rename to pkg/apis/ams/amsclient/model_label.go index 4e4d5dd83..0d04837dc 100644 --- a/pkg/api/ams/amsclient/model_label.go +++ b/pkg/apis/ams/amsclient/model_label.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,18 +17,18 @@ import ( // 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"` + 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 @@ -224,7 +224,7 @@ func (o *Label) GetInternal() bool { // 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 { + if o == nil { return nil, false } return &o.Internal, true @@ -248,7 +248,7 @@ func (o *Label) GetKey() string { // 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 { + if o == nil { return nil, false } return &o.Key, true @@ -400,7 +400,7 @@ func (o *Label) GetValue() string { // 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 { + if o == nil { return nil, false } return &o.Value, true @@ -487,3 +487,5 @@ func (v *NullableLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_label_all_of.go b/pkg/apis/ams/amsclient/model_label_all_of.go similarity index 93% rename from pkg/api/ams/amsclient/model_label_all_of.go rename to pkg/apis/ams/amsclient/model_label_all_of.go index 7c1a7661d..478475c3a 100644 --- a/pkg/api/ams/amsclient/model_label_all_of.go +++ b/pkg/apis/ams/amsclient/model_label_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,15 +17,15 @@ import ( // 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"` + 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 @@ -125,7 +125,7 @@ func (o *LabelAllOf) GetInternal() bool { // 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 { + if o == nil { return nil, false } return &o.Internal, true @@ -149,7 +149,7 @@ func (o *LabelAllOf) GetKey() string { // 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 { + if o == nil { return nil, false } return &o.Key, true @@ -301,7 +301,7 @@ func (o *LabelAllOf) GetValue() string { // 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 { + if o == nil { return nil, false } return &o.Value, true @@ -379,3 +379,5 @@ func (v *NullableLabelAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_label_list.go b/pkg/apis/ams/amsclient/model_label_list.go similarity index 93% rename from pkg/api/ams/amsclient/model_label_list.go rename to pkg/apis/ams/amsclient/model_label_list.go index 9a560ada7..13ad9ff77 100644 --- a/pkg/api/ams/amsclient/model_label_list.go +++ b/pkg/apis/ams/amsclient/model_label_list.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // LabelList struct for LabelList type LabelList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Label `json:"items"` } @@ -58,7 +58,7 @@ func (o *LabelList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *LabelList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *LabelList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *LabelList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *LabelList) GetItems() []Label { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,3 +220,5 @@ func (v *NullableLabelList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_label_list_all_of.go b/pkg/apis/ams/amsclient/model_label_list_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_label_list_all_of.go rename to pkg/apis/ams/amsclient/model_label_list_all_of.go index 2cbc5dfd6..e84f008d8 100644 --- a/pkg/api/ams/amsclient/model_label_list_all_of.go +++ b/pkg/apis/ams/amsclient/model_label_list_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullableLabelListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_list.go b/pkg/apis/ams/amsclient/model_list.go similarity index 92% rename from pkg/api/ams/amsclient/model_list.go rename to pkg/apis/ams/amsclient/model_list.go index 3693d0832..4aff98f75 100644 --- a/pkg/api/ams/amsclient/model_list.go +++ b/pkg/apis/ams/amsclient/model_list.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // List struct for List type List struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` } // NewList instantiates a new List object @@ -56,7 +56,7 @@ func (o *List) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -80,7 +80,7 @@ func (o *List) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -104,7 +104,7 @@ func (o *List) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -128,7 +128,7 @@ func (o *List) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -191,3 +191,5 @@ func (v *NullableList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_metric.go b/pkg/apis/ams/amsclient/model_metric.go similarity index 94% rename from pkg/api/ams/amsclient/model_metric.go rename to pkg/apis/ams/amsclient/model_metric.go index 78eba7a05..62a0e20c8 100644 --- a/pkg/api/ams/amsclient/model_metric.go +++ b/pkg/apis/ams/amsclient/model_metric.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,12 +17,12 @@ import ( // 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"` + 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"` } @@ -328,3 +328,5 @@ func (v *NullableMetric) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_metric_all_of.go b/pkg/apis/ams/amsclient/model_metric_all_of.go similarity index 95% rename from pkg/api/ams/amsclient/model_metric_all_of.go rename to pkg/apis/ams/amsclient/model_metric_all_of.go index 681bade37..a855595e5 100644 --- a/pkg/api/ams/amsclient/model_metric_all_of.go +++ b/pkg/apis/ams/amsclient/model_metric_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,10 +17,10 @@ import ( // 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"` + 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"` } @@ -256,3 +256,5 @@ func (v *NullableMetricAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_metrics_list.go b/pkg/apis/ams/amsclient/model_metrics_list.go similarity index 93% rename from pkg/api/ams/amsclient/model_metrics_list.go rename to pkg/apis/ams/amsclient/model_metrics_list.go index 1c69cdb99..aa8a57474 100644 --- a/pkg/api/ams/amsclient/model_metrics_list.go +++ b/pkg/apis/ams/amsclient/model_metrics_list.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // MetricsList struct for MetricsList type MetricsList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Metric `json:"items"` } @@ -58,7 +58,7 @@ func (o *MetricsList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *MetricsList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *MetricsList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *MetricsList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *MetricsList) GetItems() []Metric { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,3 +220,5 @@ func (v *NullableMetricsList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_metrics_list_all_of.go b/pkg/apis/ams/amsclient/model_metrics_list_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_metrics_list_all_of.go rename to pkg/apis/ams/amsclient/model_metrics_list_all_of.go index 8486887b2..e484f5b16 100644 --- a/pkg/api/ams/amsclient/model_metrics_list_all_of.go +++ b/pkg/apis/ams/amsclient/model_metrics_list_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullableMetricsListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_notification_contact_create_request.go b/pkg/apis/ams/amsclient/model_notification_contact_create_request.go similarity index 97% rename from pkg/api/ams/amsclient/model_notification_contact_create_request.go rename to pkg/apis/ams/amsclient/model_notification_contact_create_request.go index 71216d74f..32c54a1a2 100644 --- a/pkg/api/ams/amsclient/model_notification_contact_create_request.go +++ b/pkg/apis/ams/amsclient/model_notification_contact_create_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullableNotificationContactCreateRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_notification_request.go b/pkg/apis/ams/amsclient/model_notification_request.go similarity index 92% rename from pkg/api/ams/amsclient/model_notification_request.go rename to pkg/apis/ams/amsclient/model_notification_request.go index 2800d5df8..b18a2e5f2 100644 --- a/pkg/api/ams/amsclient/model_notification_request.go +++ b/pkg/apis/ams/amsclient/model_notification_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,14 +16,14 @@ import ( // 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"` - Subject string `json:"subject"` - SubscriptionId *string `json:"subscription_id,omitempty"` - TemplateName string `json:"template_name"` - TemplateParameters *[]TemplateParameter `json:"template_parameters,omitempty"` + 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"` + Subject string `json:"subject"` + SubscriptionId *string `json:"subscription_id,omitempty"` + TemplateName string `json:"template_name"` + TemplateParameters *[]TemplateParameter `json:"template_parameters,omitempty"` } // NewNotificationRequest instantiates a new NotificationRequest object @@ -186,7 +186,7 @@ func (o *NotificationRequest) GetSubject() string { // GetSubjectOk returns a tuple with the Subject field value // and a boolean to check if the value has been set. func (o *NotificationRequest) GetSubjectOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Subject, true @@ -242,7 +242,7 @@ func (o *NotificationRequest) GetTemplateName() string { // 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 { + if o == nil { return nil, false } return &o.TemplateName, true @@ -349,3 +349,5 @@ func (v *NullableNotificationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_object_reference.go b/pkg/apis/ams/amsclient/model_object_reference.go similarity index 96% rename from pkg/api/ams/amsclient/model_object_reference.go rename to pkg/apis/ams/amsclient/model_object_reference.go index 62220822e..f895866f1 100644 --- a/pkg/api/ams/amsclient/model_object_reference.go +++ b/pkg/apis/ams/amsclient/model_object_reference.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,7 +17,7 @@ import ( // ObjectReference struct for ObjectReference type ObjectReference struct { Href *string `json:"href,omitempty"` - Id *string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` Kind *string `json:"kind,omitempty"` } @@ -183,3 +183,5 @@ func (v *NullableObjectReference) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_one_metric.go b/pkg/apis/ams/amsclient/model_one_metric.go similarity index 89% rename from pkg/api/ams/amsclient/model_one_metric.go rename to pkg/apis/ams/amsclient/model_one_metric.go index 937ab7321..87c809a01 100644 --- a/pkg/api/ams/amsclient/model_one_metric.go +++ b/pkg/apis/ams/amsclient/model_one_metric.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,29 +16,29 @@ import ( // OneMetric struct for OneMetric type OneMetric struct { - 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"` - OpenshiftVersion string `json:"openshift_version"` - OperatingSystem string `json:"operating_system"` - OperatorsConditionFailing float64 `json:"operators_condition_failing"` - 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"` + 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"` + OpenshiftVersion string `json:"openshift_version"` + OperatingSystem string `json:"operating_system"` + OperatorsConditionFailing float64 `json:"operators_condition_failing"` + 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 @@ -93,7 +93,7 @@ func (o *OneMetric) GetCloudProvider() string { // 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 { + if o == nil { return nil, false } return &o.CloudProvider, true @@ -117,7 +117,7 @@ func (o *OneMetric) GetClusterType() string { // 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 { + if o == nil { return nil, false } return &o.ClusterType, true @@ -141,7 +141,7 @@ func (o *OneMetric) GetComputeNodesCpu() ClusterResource { // 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 { + if o == nil { return nil, false } return &o.ComputeNodesCpu, true @@ -165,7 +165,7 @@ func (o *OneMetric) GetComputeNodesMemory() ClusterResource { // 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 { + if o == nil { return nil, false } return &o.ComputeNodesMemory, true @@ -189,7 +189,7 @@ func (o *OneMetric) GetComputeNodesSockets() ClusterResource { // 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 { + if o == nil { return nil, false } return &o.ComputeNodesSockets, true @@ -213,7 +213,7 @@ func (o *OneMetric) GetConsoleUrl() string { // 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 { + if o == nil { return nil, false } return &o.ConsoleUrl, true @@ -237,7 +237,7 @@ func (o *OneMetric) GetCpu() ClusterResource { // 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 { + if o == nil { return nil, false } return &o.Cpu, true @@ -261,7 +261,7 @@ func (o *OneMetric) GetCriticalAlertsFiring() float64 { // 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 { + if o == nil { return nil, false } return &o.CriticalAlertsFiring, true @@ -317,7 +317,7 @@ func (o *OneMetric) GetMemory() ClusterResource { // 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 { + if o == nil { return nil, false } return &o.Memory, true @@ -341,7 +341,7 @@ func (o *OneMetric) GetNodes() ClusterMetricsNodes { // 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 { + if o == nil { return nil, false } return &o.Nodes, true @@ -365,7 +365,7 @@ func (o *OneMetric) GetOpenshiftVersion() string { // 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 { + if o == nil { return nil, false } return &o.OpenshiftVersion, true @@ -389,7 +389,7 @@ func (o *OneMetric) GetOperatingSystem() string { // 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 { + if o == nil { return nil, false } return &o.OperatingSystem, true @@ -413,7 +413,7 @@ func (o *OneMetric) GetOperatorsConditionFailing() float64 { // 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 { + if o == nil { return nil, false } return &o.OperatorsConditionFailing, true @@ -437,7 +437,7 @@ func (o *OneMetric) GetRegion() string { // 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 { + if o == nil { return nil, false } return &o.Region, true @@ -461,7 +461,7 @@ func (o *OneMetric) GetSockets() ClusterResource { // 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 { + if o == nil { return nil, false } return &o.Sockets, true @@ -485,7 +485,7 @@ func (o *OneMetric) GetState() string { // 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 { + if o == nil { return nil, false } return &o.State, true @@ -509,7 +509,7 @@ func (o *OneMetric) GetStateDescription() string { // 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 { + if o == nil { return nil, false } return &o.StateDescription, true @@ -533,7 +533,7 @@ func (o *OneMetric) GetStorage() ClusterResource { // 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 { + if o == nil { return nil, false } return &o.Storage, true @@ -557,7 +557,7 @@ func (o *OneMetric) GetSubscriptionCpuTotal() float64 { // 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 { + if o == nil { return nil, false } return &o.SubscriptionCpuTotal, true @@ -581,7 +581,7 @@ func (o *OneMetric) GetSubscriptionObligationExists() float64 { // 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 { + if o == nil { return nil, false } return &o.SubscriptionObligationExists, true @@ -605,7 +605,7 @@ func (o *OneMetric) GetSubscriptionSocketTotal() float64 { // 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 { + if o == nil { return nil, false } return &o.SubscriptionSocketTotal, true @@ -629,7 +629,7 @@ func (o *OneMetric) GetUpgrade() ClusterUpgrade { // 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 { + if o == nil { return nil, false } return &o.Upgrade, true @@ -749,3 +749,5 @@ func (v *NullableOneMetric) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_organization.go b/pkg/apis/ams/amsclient/model_organization.go similarity index 94% rename from pkg/api/ams/amsclient/model_organization.go rename to pkg/apis/ams/amsclient/model_organization.go index c484d7095..40745744a 100644 --- a/pkg/api/ams/amsclient/model_organization.go +++ b/pkg/apis/ams/amsclient/model_organization.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,16 +17,16 @@ import ( // Organization struct for Organization type Organization struct { - Href *string `json:"href,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` + 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"` + 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 @@ -436,3 +436,5 @@ func (v *NullableOrganization) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_organization_all_of.go b/pkg/apis/ams/amsclient/model_organization_all_of.go similarity index 94% rename from pkg/api/ams/amsclient/model_organization_all_of.go rename to pkg/apis/ams/amsclient/model_organization_all_of.go index 47ea8dd9c..b10b9b24e 100644 --- a/pkg/api/ams/amsclient/model_organization_all_of.go +++ b/pkg/apis/ams/amsclient/model_organization_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -18,12 +18,12 @@ import ( // 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"` + 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 @@ -328,3 +328,5 @@ func (v *NullableOrganizationAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_organization_list.go b/pkg/apis/ams/amsclient/model_organization_list.go similarity index 93% rename from pkg/api/ams/amsclient/model_organization_list.go rename to pkg/apis/ams/amsclient/model_organization_list.go index 2851057d6..2363562b0 100644 --- a/pkg/api/ams/amsclient/model_organization_list.go +++ b/pkg/apis/ams/amsclient/model_organization_list.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // OrganizationList struct for OrganizationList type OrganizationList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Organization `json:"items"` } @@ -58,7 +58,7 @@ func (o *OrganizationList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *OrganizationList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *OrganizationList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *OrganizationList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *OrganizationList) GetItems() []Organization { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,3 +220,5 @@ func (v *NullableOrganizationList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_organization_list_all_of.go b/pkg/apis/ams/amsclient/model_organization_list_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_organization_list_all_of.go rename to pkg/apis/ams/amsclient/model_organization_list_all_of.go index d589073f8..90ecc6ac0 100644 --- a/pkg/api/ams/amsclient/model_organization_list_all_of.go +++ b/pkg/apis/ams/amsclient/model_organization_list_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullableOrganizationListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_organization_patch_request.go b/pkg/apis/ams/amsclient/model_organization_patch_request.go similarity index 96% rename from pkg/api/ams/amsclient/model_organization_patch_request.go rename to pkg/apis/ams/amsclient/model_organization_patch_request.go index aa2fff4d8..3776c87fb 100644 --- a/pkg/api/ams/amsclient/model_organization_patch_request.go +++ b/pkg/apis/ams/amsclient/model_organization_patch_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,8 +17,8 @@ import ( // 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"` + ExternalId *string `json:"external_id,omitempty"` + Name *string `json:"name,omitempty"` } // NewOrganizationPatchRequest instantiates a new OrganizationPatchRequest object @@ -183,3 +183,5 @@ func (v *NullableOrganizationPatchRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_permission.go b/pkg/apis/ams/amsclient/model_permission.go similarity index 95% rename from pkg/api/ams/amsclient/model_permission.go rename to pkg/apis/ams/amsclient/model_permission.go index b9b81b0d1..77a2e41dd 100644 --- a/pkg/api/ams/amsclient/model_permission.go +++ b/pkg/apis/ams/amsclient/model_permission.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,7 +16,7 @@ import ( // Permission struct for Permission type Permission struct { - Action *string `json:"action,omitempty"` + Action *string `json:"action,omitempty"` Resource *string `json:"resource,omitempty"` } @@ -147,3 +147,5 @@ func (v *NullablePermission) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_permission_all_of.go b/pkg/apis/ams/amsclient/model_permission_all_of.go similarity index 95% rename from pkg/api/ams/amsclient/model_permission_all_of.go rename to pkg/apis/ams/amsclient/model_permission_all_of.go index c916fcae7..6d7535401 100644 --- a/pkg/api/ams/amsclient/model_permission_all_of.go +++ b/pkg/apis/ams/amsclient/model_permission_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,7 +16,7 @@ import ( // PermissionAllOf struct for PermissionAllOf type PermissionAllOf struct { - Action *string `json:"action,omitempty"` + Action *string `json:"action,omitempty"` Resource *string `json:"resource,omitempty"` } @@ -147,3 +147,5 @@ func (v *NullablePermissionAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_permission_list.go b/pkg/apis/ams/amsclient/model_permission_list.go similarity index 93% rename from pkg/api/ams/amsclient/model_permission_list.go rename to pkg/apis/ams/amsclient/model_permission_list.go index 3e4ed6994..6fa9360f2 100644 --- a/pkg/api/ams/amsclient/model_permission_list.go +++ b/pkg/apis/ams/amsclient/model_permission_list.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // PermissionList struct for PermissionList type PermissionList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Permission `json:"items"` } @@ -58,7 +58,7 @@ func (o *PermissionList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *PermissionList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *PermissionList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *PermissionList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *PermissionList) GetItems() []Permission { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,3 +220,5 @@ func (v *NullablePermissionList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_permission_list_all_of.go b/pkg/apis/ams/amsclient/model_permission_list_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_permission_list_all_of.go rename to pkg/apis/ams/amsclient/model_permission_list_all_of.go index baf1df7e6..66f22b021 100644 --- a/pkg/api/ams/amsclient/model_permission_list_all_of.go +++ b/pkg/apis/ams/amsclient/model_permission_list_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullablePermissionListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_plan.go b/pkg/apis/ams/amsclient/model_plan.go similarity index 95% rename from pkg/api/ams/amsclient/model_plan.go rename to pkg/apis/ams/amsclient/model_plan.go index a3f966bcf..852a874e3 100644 --- a/pkg/api/ams/amsclient/model_plan.go +++ b/pkg/apis/ams/amsclient/model_plan.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,12 +16,12 @@ import ( // Plan struct for Plan type Plan struct { - Href *string `json:"href,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` + 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"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` } // NewPlan instantiates a new Plan object @@ -291,3 +291,5 @@ func (v *NullablePlan) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_plan_all_of.go b/pkg/apis/ams/amsclient/model_plan_all_of.go similarity index 95% rename from pkg/api/ams/amsclient/model_plan_all_of.go rename to pkg/apis/ams/amsclient/model_plan_all_of.go index 66c83460d..7c696ccf0 100644 --- a/pkg/api/ams/amsclient/model_plan_all_of.go +++ b/pkg/apis/ams/amsclient/model_plan_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,8 +17,8 @@ import ( // PlanAllOf struct for PlanAllOf type PlanAllOf struct { Category *string `json:"category,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` } // NewPlanAllOf instantiates a new PlanAllOf object @@ -183,3 +183,5 @@ func (v *NullablePlanAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_plan_list.go b/pkg/apis/ams/amsclient/model_plan_list.go similarity index 93% rename from pkg/api/ams/amsclient/model_plan_list.go rename to pkg/apis/ams/amsclient/model_plan_list.go index 3bdc4d93a..b5cef0cea 100644 --- a/pkg/api/ams/amsclient/model_plan_list.go +++ b/pkg/apis/ams/amsclient/model_plan_list.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // PlanList struct for PlanList type PlanList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Plan `json:"items"` } @@ -58,7 +58,7 @@ func (o *PlanList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *PlanList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *PlanList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *PlanList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *PlanList) GetItems() []Plan { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,3 +220,5 @@ func (v *NullablePlanList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_plan_list_all_of.go b/pkg/apis/ams/amsclient/model_plan_list_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_plan_list_all_of.go rename to pkg/apis/ams/amsclient/model_plan_list_all_of.go index c6ca3a644..fa3ed75bf 100644 --- a/pkg/api/ams/amsclient/model_plan_list_all_of.go +++ b/pkg/apis/ams/amsclient/model_plan_list_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullablePlanListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_pull_secret_request.go b/pkg/apis/ams/amsclient/model_pull_secret_request.go similarity index 95% rename from pkg/api/ams/amsclient/model_pull_secret_request.go rename to pkg/apis/ams/amsclient/model_pull_secret_request.go index 25a2b8fea..88a6ac139 100644 --- a/pkg/api/ams/amsclient/model_pull_secret_request.go +++ b/pkg/apis/ams/amsclient/model_pull_secret_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -50,7 +50,7 @@ func (o *PullSecretRequest) GetExternalResourceId() string { // 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 { + if o == nil { return nil, false } return &o.ExternalResourceId, true @@ -104,3 +104,5 @@ func (v *NullablePullSecretRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_quota_cost.go b/pkg/apis/ams/amsclient/model_quota_cost.go similarity index 93% rename from pkg/api/ams/amsclient/model_quota_cost.go rename to pkg/apis/ams/amsclient/model_quota_cost.go index d1e611d0e..6ea9af2bb 100644 --- a/pkg/api/ams/amsclient/model_quota_cost.go +++ b/pkg/apis/ams/amsclient/model_quota_cost.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,13 +16,13 @@ import ( // 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"` - Consumed int32 `json:"consumed"` - OrganizationId *string `json:"organization_id,omitempty"` - QuotaId string `json:"quota_id"` + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Allowed int32 `json:"allowed"` + Consumed int32 `json:"consumed"` + OrganizationId *string `json:"organization_id,omitempty"` + QuotaId string `json:"quota_id"` RelatedResources *[]RelatedResource `json:"related_resources,omitempty"` } @@ -155,7 +155,7 @@ func (o *QuotaCost) GetAllowed() int32 { // 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 { + if o == nil { return nil, false } return &o.Allowed, true @@ -179,7 +179,7 @@ func (o *QuotaCost) GetConsumed() int32 { // 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 { + if o == nil { return nil, false } return &o.Consumed, true @@ -235,7 +235,7 @@ func (o *QuotaCost) GetQuotaId() string { // 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 { + if o == nil { return nil, false } return &o.QuotaId, true @@ -342,3 +342,5 @@ func (v *NullableQuotaCost) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_quota_cost_all_of.go b/pkg/apis/ams/amsclient/model_quota_cost_all_of.go similarity index 93% rename from pkg/api/ams/amsclient/model_quota_cost_all_of.go rename to pkg/apis/ams/amsclient/model_quota_cost_all_of.go index d16a237a2..426dd40a5 100644 --- a/pkg/api/ams/amsclient/model_quota_cost_all_of.go +++ b/pkg/apis/ams/amsclient/model_quota_cost_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // QuotaCostAllOf struct for QuotaCostAllOf type QuotaCostAllOf struct { - Allowed int32 `json:"allowed"` - Consumed int32 `json:"consumed"` - OrganizationId *string `json:"organization_id,omitempty"` - QuotaId string `json:"quota_id"` + Allowed int32 `json:"allowed"` + Consumed int32 `json:"consumed"` + OrganizationId *string `json:"organization_id,omitempty"` + QuotaId string `json:"quota_id"` RelatedResources *[]RelatedResource `json:"related_resources,omitempty"` } @@ -56,7 +56,7 @@ func (o *QuotaCostAllOf) GetAllowed() int32 { // 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 { + if o == nil { return nil, false } return &o.Allowed, true @@ -80,7 +80,7 @@ func (o *QuotaCostAllOf) GetConsumed() int32 { // 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 { + if o == nil { return nil, false } return &o.Consumed, true @@ -136,7 +136,7 @@ func (o *QuotaCostAllOf) GetQuotaId() string { // 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 { + if o == nil { return nil, false } return &o.QuotaId, true @@ -234,3 +234,5 @@ func (v *NullableQuotaCostAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_quota_cost_list.go b/pkg/apis/ams/amsclient/model_quota_cost_list.go similarity index 93% rename from pkg/api/ams/amsclient/model_quota_cost_list.go rename to pkg/apis/ams/amsclient/model_quota_cost_list.go index 17c4800ae..d0fbcaaa2 100644 --- a/pkg/api/ams/amsclient/model_quota_cost_list.go +++ b/pkg/apis/ams/amsclient/model_quota_cost_list.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // QuotaCostList struct for QuotaCostList type QuotaCostList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []QuotaCost `json:"items"` } @@ -58,7 +58,7 @@ func (o *QuotaCostList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *QuotaCostList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *QuotaCostList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *QuotaCostList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *QuotaCostList) GetItems() []QuotaCost { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,3 +220,5 @@ func (v *NullableQuotaCostList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_quota_cost_list_all_of.go b/pkg/apis/ams/amsclient/model_quota_cost_list_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_quota_cost_list_all_of.go rename to pkg/apis/ams/amsclient/model_quota_cost_list_all_of.go index fed9ae374..c1d60fcf8 100644 --- a/pkg/api/ams/amsclient/model_quota_cost_list_all_of.go +++ b/pkg/apis/ams/amsclient/model_quota_cost_list_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullableQuotaCostListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_quota_summary.go b/pkg/apis/ams/amsclient/model_quota_summary.go similarity index 92% rename from pkg/api/ams/amsclient/model_quota_summary.go rename to pkg/apis/ams/amsclient/model_quota_summary.go index 78606890e..609e15e60 100644 --- a/pkg/api/ams/amsclient/model_quota_summary.go +++ b/pkg/apis/ams/amsclient/model_quota_summary.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,16 +16,16 @@ import ( // QuotaSummary struct for QuotaSummary type QuotaSummary struct { - Href *string `json:"href,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Allowed int32 `json:"allowed"` - AvailabilityZoneType string `json:"availability_zone_type"` - Byoc bool `json:"byoc"` - OrganizationId *string `json:"organization_id,omitempty"` - Reserved int32 `json:"reserved"` - ResourceName string `json:"resource_name"` - ResourceType string `json:"resource_type"` + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Allowed int32 `json:"allowed"` + AvailabilityZoneType string `json:"availability_zone_type"` + Byoc bool `json:"byoc"` + OrganizationId *string `json:"organization_id,omitempty"` + Reserved int32 `json:"reserved"` + ResourceName string `json:"resource_name"` + ResourceType string `json:"resource_type"` } // NewQuotaSummary instantiates a new QuotaSummary object @@ -160,7 +160,7 @@ func (o *QuotaSummary) GetAllowed() int32 { // GetAllowedOk returns a tuple with the Allowed field value // and a boolean to check if the value has been set. func (o *QuotaSummary) GetAllowedOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Allowed, true @@ -184,7 +184,7 @@ func (o *QuotaSummary) GetAvailabilityZoneType() string { // GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field value // and a boolean to check if the value has been set. func (o *QuotaSummary) GetAvailabilityZoneTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AvailabilityZoneType, true @@ -208,7 +208,7 @@ func (o *QuotaSummary) GetByoc() bool { // GetByocOk returns a tuple with the Byoc field value // and a boolean to check if the value has been set. func (o *QuotaSummary) GetByocOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Byoc, true @@ -264,7 +264,7 @@ func (o *QuotaSummary) GetReserved() int32 { // GetReservedOk returns a tuple with the Reserved field value // and a boolean to check if the value has been set. func (o *QuotaSummary) GetReservedOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Reserved, true @@ -288,7 +288,7 @@ func (o *QuotaSummary) GetResourceName() string { // GetResourceNameOk returns a tuple with the ResourceName field value // and a boolean to check if the value has been set. func (o *QuotaSummary) GetResourceNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ResourceName, true @@ -312,7 +312,7 @@ func (o *QuotaSummary) GetResourceType() string { // GetResourceTypeOk returns a tuple with the ResourceType field value // and a boolean to check if the value has been set. func (o *QuotaSummary) GetResourceTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ResourceType, true @@ -393,3 +393,5 @@ func (v *NullableQuotaSummary) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_quota_summary_all_of.go b/pkg/apis/ams/amsclient/model_quota_summary_all_of.go similarity index 92% rename from pkg/api/ams/amsclient/model_quota_summary_all_of.go rename to pkg/apis/ams/amsclient/model_quota_summary_all_of.go index 396d69484..9d41d05d5 100644 --- a/pkg/api/ams/amsclient/model_quota_summary_all_of.go +++ b/pkg/apis/ams/amsclient/model_quota_summary_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,13 +16,13 @@ import ( // QuotaSummaryAllOf struct for QuotaSummaryAllOf type QuotaSummaryAllOf struct { - Allowed int32 `json:"allowed"` - AvailabilityZoneType string `json:"availability_zone_type"` - Byoc bool `json:"byoc"` - OrganizationId *string `json:"organization_id,omitempty"` - Reserved int32 `json:"reserved"` - ResourceName string `json:"resource_name"` - ResourceType string `json:"resource_type"` + Allowed int32 `json:"allowed"` + AvailabilityZoneType string `json:"availability_zone_type"` + Byoc bool `json:"byoc"` + OrganizationId *string `json:"organization_id,omitempty"` + Reserved int32 `json:"reserved"` + ResourceName string `json:"resource_name"` + ResourceType string `json:"resource_type"` } // NewQuotaSummaryAllOf instantiates a new QuotaSummaryAllOf object @@ -61,7 +61,7 @@ func (o *QuotaSummaryAllOf) GetAllowed() int32 { // GetAllowedOk returns a tuple with the Allowed field value // and a boolean to check if the value has been set. func (o *QuotaSummaryAllOf) GetAllowedOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Allowed, true @@ -85,7 +85,7 @@ func (o *QuotaSummaryAllOf) GetAvailabilityZoneType() string { // GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field value // and a boolean to check if the value has been set. func (o *QuotaSummaryAllOf) GetAvailabilityZoneTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AvailabilityZoneType, true @@ -109,7 +109,7 @@ func (o *QuotaSummaryAllOf) GetByoc() bool { // GetByocOk returns a tuple with the Byoc field value // and a boolean to check if the value has been set. func (o *QuotaSummaryAllOf) GetByocOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Byoc, true @@ -165,7 +165,7 @@ func (o *QuotaSummaryAllOf) GetReserved() int32 { // GetReservedOk returns a tuple with the Reserved field value // and a boolean to check if the value has been set. func (o *QuotaSummaryAllOf) GetReservedOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Reserved, true @@ -189,7 +189,7 @@ func (o *QuotaSummaryAllOf) GetResourceName() string { // GetResourceNameOk returns a tuple with the ResourceName field value // and a boolean to check if the value has been set. func (o *QuotaSummaryAllOf) GetResourceNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ResourceName, true @@ -213,7 +213,7 @@ func (o *QuotaSummaryAllOf) GetResourceType() string { // GetResourceTypeOk returns a tuple with the ResourceType field value // and a boolean to check if the value has been set. func (o *QuotaSummaryAllOf) GetResourceTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ResourceType, true @@ -285,3 +285,5 @@ func (v *NullableQuotaSummaryAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_quota_summary_list.go b/pkg/apis/ams/amsclient/model_quota_summary_list.go similarity index 93% rename from pkg/api/ams/amsclient/model_quota_summary_list.go rename to pkg/apis/ams/amsclient/model_quota_summary_list.go index 179f5d8ce..ec8ca2b25 100644 --- a/pkg/api/ams/amsclient/model_quota_summary_list.go +++ b/pkg/apis/ams/amsclient/model_quota_summary_list.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // QuotaSummaryList struct for QuotaSummaryList type QuotaSummaryList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []QuotaSummary `json:"items"` } @@ -58,7 +58,7 @@ func (o *QuotaSummaryList) GetKind() string { // GetKindOk returns a tuple with the Kind field value // and a boolean to check if the value has been set. func (o *QuotaSummaryList) GetKindOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *QuotaSummaryList) GetPage() int32 { // GetPageOk returns a tuple with the Page field value // and a boolean to check if the value has been set. func (o *QuotaSummaryList) GetPageOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *QuotaSummaryList) GetSize() int32 { // GetSizeOk returns a tuple with the Size field value // and a boolean to check if the value has been set. func (o *QuotaSummaryList) GetSizeOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *QuotaSummaryList) GetTotal() int32 { // GetTotalOk returns a tuple with the Total field value // and a boolean to check if the value has been set. func (o *QuotaSummaryList) GetTotalOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *QuotaSummaryList) GetItems() []QuotaSummary { // GetItemsOk returns a tuple with the Items field value // and a boolean to check if the value has been set. func (o *QuotaSummaryList) GetItemsOk() (*[]QuotaSummary, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Items, true @@ -220,3 +220,5 @@ func (v *NullableQuotaSummaryList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_quota_summary_list_all_of.go b/pkg/apis/ams/amsclient/model_quota_summary_list_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_quota_summary_list_all_of.go rename to pkg/apis/ams/amsclient/model_quota_summary_list_all_of.go index b80fe0306..83d3aeece 100644 --- a/pkg/api/ams/amsclient/model_quota_summary_list_all_of.go +++ b/pkg/apis/ams/amsclient/model_quota_summary_list_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullableQuotaSummaryListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_registry.go b/pkg/apis/ams/amsclient/model_registry.go similarity index 94% rename from pkg/api/ams/amsclient/model_registry.go rename to pkg/apis/ams/amsclient/model_registry.go index f9cde3009..1ab37b7de 100644 --- a/pkg/api/ams/amsclient/model_registry.go +++ b/pkg/apis/ams/amsclient/model_registry.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,17 +17,17 @@ import ( // 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"` + 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 @@ -472,3 +472,5 @@ func (v *NullableRegistry) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_registry_all_of.go b/pkg/apis/ams/amsclient/model_registry_all_of.go similarity index 94% rename from pkg/api/ams/amsclient/model_registry_all_of.go rename to pkg/apis/ams/amsclient/model_registry_all_of.go index 78ee54c42..c51543fde 100644 --- a/pkg/api/ams/amsclient/model_registry_all_of.go +++ b/pkg/apis/ams/amsclient/model_registry_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,14 +17,14 @@ import ( // 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"` + 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 @@ -364,3 +364,5 @@ func (v *NullableRegistryAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_registry_create_request.go b/pkg/apis/ams/amsclient/model_registry_create_request.go similarity index 94% rename from pkg/api/ams/amsclient/model_registry_create_request.go rename to pkg/apis/ams/amsclient/model_registry_create_request.go index a86215bf8..13c98ea0d 100644 --- a/pkg/api/ams/amsclient/model_registry_create_request.go +++ b/pkg/apis/ams/amsclient/model_registry_create_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,12 +16,12 @@ import ( // 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"` + 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 @@ -89,7 +89,7 @@ func (o *RegistryCreateRequest) GetName() string { // 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 { + if o == nil { return nil, false } return &o.Name, true @@ -177,7 +177,7 @@ func (o *RegistryCreateRequest) GetType() string { // 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 { + if o == nil { return nil, false } return &o.Type, true @@ -201,7 +201,7 @@ func (o *RegistryCreateRequest) GetUrl() string { // 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 { + if o == nil { return nil, false } return &o.Url, true @@ -270,3 +270,5 @@ func (v *NullableRegistryCreateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_registry_credential.go b/pkg/apis/ams/amsclient/model_registry_credential.go similarity index 93% rename from pkg/api/ams/amsclient/model_registry_credential.go rename to pkg/apis/ams/amsclient/model_registry_credential.go index f115e7f4a..1dee7af87 100644 --- a/pkg/api/ams/amsclient/model_registry_credential.go +++ b/pkg/apis/ams/amsclient/model_registry_credential.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,16 +17,16 @@ import ( // 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"` + 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 @@ -436,3 +436,5 @@ func (v *NullableRegistryCredential) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_registry_credential_all_of.go b/pkg/apis/ams/amsclient/model_registry_credential_all_of.go similarity index 93% rename from pkg/api/ams/amsclient/model_registry_credential_all_of.go rename to pkg/apis/ams/amsclient/model_registry_credential_all_of.go index 19a5fe84c..1cfccfa0f 100644 --- a/pkg/api/ams/amsclient/model_registry_credential_all_of.go +++ b/pkg/apis/ams/amsclient/model_registry_credential_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,13 +17,13 @@ import ( // 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"` + 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 @@ -328,3 +328,5 @@ func (v *NullableRegistryCredentialAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_registry_credential_list.go b/pkg/apis/ams/amsclient/model_registry_credential_list.go similarity index 93% rename from pkg/api/ams/amsclient/model_registry_credential_list.go rename to pkg/apis/ams/amsclient/model_registry_credential_list.go index 590a06ea3..99a7026ca 100644 --- a/pkg/api/ams/amsclient/model_registry_credential_list.go +++ b/pkg/apis/ams/amsclient/model_registry_credential_list.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // RegistryCredentialList struct for RegistryCredentialList type RegistryCredentialList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []RegistryCredential `json:"items"` } @@ -58,7 +58,7 @@ func (o *RegistryCredentialList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *RegistryCredentialList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *RegistryCredentialList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *RegistryCredentialList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *RegistryCredentialList) GetItems() []RegistryCredential { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,3 +220,5 @@ func (v *NullableRegistryCredentialList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_registry_credential_list_all_of.go b/pkg/apis/ams/amsclient/model_registry_credential_list_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_registry_credential_list_all_of.go rename to pkg/apis/ams/amsclient/model_registry_credential_list_all_of.go index 5c64aa734..7575000b5 100644 --- a/pkg/api/ams/amsclient/model_registry_credential_list_all_of.go +++ b/pkg/apis/ams/amsclient/model_registry_credential_list_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullableRegistryCredentialListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_registry_credential_patch_request.go b/pkg/apis/ams/amsclient/model_registry_credential_patch_request.go similarity index 95% rename from pkg/api/ams/amsclient/model_registry_credential_patch_request.go rename to pkg/apis/ams/amsclient/model_registry_credential_patch_request.go index fb95df3cd..630e3a50a 100644 --- a/pkg/api/ams/amsclient/model_registry_credential_patch_request.go +++ b/pkg/apis/ams/amsclient/model_registry_credential_patch_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,11 +16,11 @@ import ( // RegistryCredentialPatchRequest struct for RegistryCredentialPatchRequest type RegistryCredentialPatchRequest struct { - AccountId *string `json:"account_id,omitempty"` + 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"` + RegistryId *string `json:"registry_id,omitempty"` + Token *string `json:"token,omitempty"` + Username *string `json:"username,omitempty"` } // NewRegistryCredentialPatchRequest instantiates a new RegistryCredentialPatchRequest object @@ -255,3 +255,5 @@ func (v *NullableRegistryCredentialPatchRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_registry_list.go b/pkg/apis/ams/amsclient/model_registry_list.go similarity index 93% rename from pkg/api/ams/amsclient/model_registry_list.go rename to pkg/apis/ams/amsclient/model_registry_list.go index 7eba923bb..41fd24403 100644 --- a/pkg/api/ams/amsclient/model_registry_list.go +++ b/pkg/apis/ams/amsclient/model_registry_list.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // RegistryList struct for RegistryList type RegistryList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Registry `json:"items"` } @@ -58,7 +58,7 @@ func (o *RegistryList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *RegistryList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *RegistryList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *RegistryList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *RegistryList) GetItems() []Registry { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,3 +220,5 @@ func (v *NullableRegistryList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_registry_list_all_of.go b/pkg/apis/ams/amsclient/model_registry_list_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_registry_list_all_of.go rename to pkg/apis/ams/amsclient/model_registry_list_all_of.go index c7e59dde7..fa31e2213 100644 --- a/pkg/api/ams/amsclient/model_registry_list_all_of.go +++ b/pkg/apis/ams/amsclient/model_registry_list_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullableRegistryListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_registry_request.go b/pkg/apis/ams/amsclient/model_registry_request.go similarity index 94% rename from pkg/api/ams/amsclient/model_registry_request.go rename to pkg/apis/ams/amsclient/model_registry_request.go index b202106fa..2d3690c9a 100644 --- a/pkg/api/ams/amsclient/model_registry_request.go +++ b/pkg/apis/ams/amsclient/model_registry_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,12 +16,12 @@ import ( // 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"` + 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 @@ -291,3 +291,5 @@ func (v *NullableRegistryRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_related_resource.go b/pkg/apis/ams/amsclient/model_related_resource.go similarity index 92% rename from pkg/api/ams/amsclient/model_related_resource.go rename to pkg/apis/ams/amsclient/model_related_resource.go index 8d0782087..1a569bdf6 100644 --- a/pkg/api/ams/amsclient/model_related_resource.go +++ b/pkg/apis/ams/amsclient/model_related_resource.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,18 +16,18 @@ import ( // 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"` + 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 @@ -163,7 +163,7 @@ func (o *RelatedResource) GetAvailabilityZoneType() string { // 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 { + if o == nil { return nil, false } return &o.AvailabilityZoneType, true @@ -187,7 +187,7 @@ func (o *RelatedResource) GetBillingModel() string { // 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 { + if o == nil { return nil, false } return &o.BillingModel, true @@ -211,7 +211,7 @@ func (o *RelatedResource) GetByoc() string { // 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 { + if o == nil { return nil, false } return &o.Byoc, true @@ -235,7 +235,7 @@ func (o *RelatedResource) GetCloudProvider() string { // 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 { + if o == nil { return nil, false } return &o.CloudProvider, true @@ -259,7 +259,7 @@ func (o *RelatedResource) GetCost() int32 { // 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 { + if o == nil { return nil, false } return &o.Cost, true @@ -283,7 +283,7 @@ func (o *RelatedResource) GetProduct() string { // 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 { + if o == nil { return nil, false } return &o.Product, true @@ -371,7 +371,7 @@ func (o *RelatedResource) GetResourceType() string { // 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 { + if o == nil { return nil, false } return &o.ResourceType, true @@ -458,3 +458,5 @@ func (v *NullableRelatedResource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_related_resource_all_of.go b/pkg/apis/ams/amsclient/model_related_resource_all_of.go similarity index 92% rename from pkg/api/ams/amsclient/model_related_resource_all_of.go rename to pkg/apis/ams/amsclient/model_related_resource_all_of.go index b0f90b550..a4e05a77f 100644 --- a/pkg/api/ams/amsclient/model_related_resource_all_of.go +++ b/pkg/apis/ams/amsclient/model_related_resource_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,15 +16,15 @@ import ( // 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"` + 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 @@ -64,7 +64,7 @@ func (o *RelatedResourceAllOf) GetAvailabilityZoneType() string { // 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 { + if o == nil { return nil, false } return &o.AvailabilityZoneType, true @@ -88,7 +88,7 @@ func (o *RelatedResourceAllOf) GetBillingModel() string { // 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 { + if o == nil { return nil, false } return &o.BillingModel, true @@ -112,7 +112,7 @@ func (o *RelatedResourceAllOf) GetByoc() string { // 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 { + if o == nil { return nil, false } return &o.Byoc, true @@ -136,7 +136,7 @@ func (o *RelatedResourceAllOf) GetCloudProvider() string { // 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 { + if o == nil { return nil, false } return &o.CloudProvider, true @@ -160,7 +160,7 @@ func (o *RelatedResourceAllOf) GetCost() int32 { // 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 { + if o == nil { return nil, false } return &o.Cost, true @@ -184,7 +184,7 @@ func (o *RelatedResourceAllOf) GetProduct() string { // 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 { + if o == nil { return nil, false } return &o.Product, true @@ -272,7 +272,7 @@ func (o *RelatedResourceAllOf) GetResourceType() string { // 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 { + if o == nil { return nil, false } return &o.ResourceType, true @@ -350,3 +350,5 @@ func (v *NullableRelatedResourceAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_reserved_resource.go b/pkg/apis/ams/amsclient/model_reserved_resource.go similarity index 93% rename from pkg/api/ams/amsclient/model_reserved_resource.go rename to pkg/apis/ams/amsclient/model_reserved_resource.go index 1d844c8e6..ad4d83886 100644 --- a/pkg/api/ams/amsclient/model_reserved_resource.go +++ b/pkg/apis/ams/amsclient/model_reserved_resource.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,19 +17,19 @@ import ( // 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"` - 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"` + 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"` + 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 @@ -223,7 +223,7 @@ func (o *ReservedResource) GetByoc() bool { // 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 { + if o == nil { return nil, false } return &o.Byoc, true @@ -537,3 +537,5 @@ func (v *NullableReservedResource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_reserved_resource_all_of.go b/pkg/apis/ams/amsclient/model_reserved_resource_all_of.go similarity index 93% rename from pkg/api/ams/amsclient/model_reserved_resource_all_of.go rename to pkg/apis/ams/amsclient/model_reserved_resource_all_of.go index f6905a788..7d3c30731 100644 --- a/pkg/api/ams/amsclient/model_reserved_resource_all_of.go +++ b/pkg/apis/ams/amsclient/model_reserved_resource_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,16 +17,16 @@ import ( // ReservedResourceAllOf struct for ReservedResourceAllOf type ReservedResourceAllOf struct { - AvailabilityZoneType *string `json:"availability_zone_type,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"` + AvailabilityZoneType *string `json:"availability_zone_type,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 @@ -124,7 +124,7 @@ func (o *ReservedResourceAllOf) GetByoc() bool { // 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 { + if o == nil { return nil, false } return &o.Byoc, true @@ -429,3 +429,5 @@ func (v *NullableReservedResourceAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_reserved_resource_list.go b/pkg/apis/ams/amsclient/model_reserved_resource_list.go similarity index 93% rename from pkg/api/ams/amsclient/model_reserved_resource_list.go rename to pkg/apis/ams/amsclient/model_reserved_resource_list.go index e0486c297..37a97601f 100644 --- a/pkg/api/ams/amsclient/model_reserved_resource_list.go +++ b/pkg/apis/ams/amsclient/model_reserved_resource_list.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // ReservedResourceList struct for ReservedResourceList type ReservedResourceList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []ReservedResource `json:"items"` } @@ -58,7 +58,7 @@ func (o *ReservedResourceList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *ReservedResourceList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *ReservedResourceList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *ReservedResourceList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *ReservedResourceList) GetItems() []ReservedResource { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,3 +220,5 @@ func (v *NullableReservedResourceList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_reserved_resource_list_all_of.go b/pkg/apis/ams/amsclient/model_reserved_resource_list_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_reserved_resource_list_all_of.go rename to pkg/apis/ams/amsclient/model_reserved_resource_list_all_of.go index 10e68d396..96582a30f 100644 --- a/pkg/api/ams/amsclient/model_reserved_resource_list_all_of.go +++ b/pkg/apis/ams/amsclient/model_reserved_resource_list_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullableReservedResourceListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_resource_quota.go b/pkg/apis/ams/amsclient/model_resource_quota.go similarity index 92% rename from pkg/api/ams/amsclient/model_resource_quota.go rename to pkg/apis/ams/amsclient/model_resource_quota.go index c71abbee0..5ef44589a 100644 --- a/pkg/api/ams/amsclient/model_resource_quota.go +++ b/pkg/apis/ams/amsclient/model_resource_quota.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,20 +17,20 @@ import ( // ResourceQuota struct for ResourceQuota type ResourceQuota struct { - Href *string `json:"href,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Allowed int32 `json:"allowed"` - AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` - Byoc bool `json:"byoc"` - CreatedAt *time.Time `json:"created_at,omitempty"` - OrganizationId *string `json:"organization_id,omitempty"` - ResourceName string `json:"resource_name"` - ResourceType string `json:"resource_type"` - Sku *string `json:"sku,omitempty"` - SkuCount *int32 `json:"sku_count,omitempty"` - Type *string `json:"type,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Allowed int32 `json:"allowed"` + AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` + Byoc bool `json:"byoc"` + CreatedAt *time.Time `json:"created_at,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + ResourceName string `json:"resource_name"` + ResourceType string `json:"resource_type"` + Sku *string `json:"sku,omitempty"` + SkuCount *int32 `json:"sku_count,omitempty"` + Type *string `json:"type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` } // NewResourceQuota instantiates a new ResourceQuota object @@ -163,7 +163,7 @@ func (o *ResourceQuota) GetAllowed() int32 { // GetAllowedOk returns a tuple with the Allowed field value // and a boolean to check if the value has been set. func (o *ResourceQuota) GetAllowedOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Allowed, true @@ -219,7 +219,7 @@ func (o *ResourceQuota) GetByoc() bool { // GetByocOk returns a tuple with the Byoc field value // and a boolean to check if the value has been set. func (o *ResourceQuota) GetByocOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Byoc, true @@ -307,7 +307,7 @@ func (o *ResourceQuota) GetResourceName() string { // GetResourceNameOk returns a tuple with the ResourceName field value // and a boolean to check if the value has been set. func (o *ResourceQuota) GetResourceNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ResourceName, true @@ -331,7 +331,7 @@ func (o *ResourceQuota) GetResourceType() string { // GetResourceTypeOk returns a tuple with the ResourceType field value // and a boolean to check if the value has been set. func (o *ResourceQuota) GetResourceTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ResourceType, true @@ -552,3 +552,5 @@ func (v *NullableResourceQuota) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_resource_quota_all_of.go b/pkg/apis/ams/amsclient/model_resource_quota_all_of.go similarity index 93% rename from pkg/api/ams/amsclient/model_resource_quota_all_of.go rename to pkg/apis/ams/amsclient/model_resource_quota_all_of.go index 9482af699..f1d483642 100644 --- a/pkg/api/ams/amsclient/model_resource_quota_all_of.go +++ b/pkg/apis/ams/amsclient/model_resource_quota_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,17 +17,17 @@ import ( // ResourceQuotaAllOf struct for ResourceQuotaAllOf type ResourceQuotaAllOf struct { - Allowed int32 `json:"allowed"` - AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` - Byoc bool `json:"byoc"` - CreatedAt *time.Time `json:"created_at,omitempty"` - OrganizationId *string `json:"organization_id,omitempty"` - ResourceName string `json:"resource_name"` - ResourceType string `json:"resource_type"` - Sku *string `json:"sku,omitempty"` - SkuCount *int32 `json:"sku_count,omitempty"` - Type *string `json:"type,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` + Allowed int32 `json:"allowed"` + AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` + Byoc bool `json:"byoc"` + CreatedAt *time.Time `json:"created_at,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + ResourceName string `json:"resource_name"` + ResourceType string `json:"resource_type"` + Sku *string `json:"sku,omitempty"` + SkuCount *int32 `json:"sku_count,omitempty"` + Type *string `json:"type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` } // NewResourceQuotaAllOf instantiates a new ResourceQuotaAllOf object @@ -64,7 +64,7 @@ func (o *ResourceQuotaAllOf) GetAllowed() int32 { // GetAllowedOk returns a tuple with the Allowed field value // and a boolean to check if the value has been set. func (o *ResourceQuotaAllOf) GetAllowedOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Allowed, true @@ -120,7 +120,7 @@ func (o *ResourceQuotaAllOf) GetByoc() bool { // GetByocOk returns a tuple with the Byoc field value // and a boolean to check if the value has been set. func (o *ResourceQuotaAllOf) GetByocOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Byoc, true @@ -208,7 +208,7 @@ func (o *ResourceQuotaAllOf) GetResourceName() string { // GetResourceNameOk returns a tuple with the ResourceName field value // and a boolean to check if the value has been set. func (o *ResourceQuotaAllOf) GetResourceNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ResourceName, true @@ -232,7 +232,7 @@ func (o *ResourceQuotaAllOf) GetResourceType() string { // GetResourceTypeOk returns a tuple with the ResourceType field value // and a boolean to check if the value has been set. func (o *ResourceQuotaAllOf) GetResourceTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ResourceType, true @@ -444,3 +444,5 @@ func (v *NullableResourceQuotaAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_resource_quota_list.go b/pkg/apis/ams/amsclient/model_resource_quota_list.go similarity index 93% rename from pkg/api/ams/amsclient/model_resource_quota_list.go rename to pkg/apis/ams/amsclient/model_resource_quota_list.go index 8b08852ca..576cf0b8a 100644 --- a/pkg/api/ams/amsclient/model_resource_quota_list.go +++ b/pkg/apis/ams/amsclient/model_resource_quota_list.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // ResourceQuotaList struct for ResourceQuotaList type ResourceQuotaList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []ResourceQuota `json:"items"` } @@ -58,7 +58,7 @@ func (o *ResourceQuotaList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *ResourceQuotaList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *ResourceQuotaList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *ResourceQuotaList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *ResourceQuotaList) GetItems() []ResourceQuota { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,3 +220,5 @@ func (v *NullableResourceQuotaList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_resource_quota_list_all_of.go b/pkg/apis/ams/amsclient/model_resource_quota_list_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_resource_quota_list_all_of.go rename to pkg/apis/ams/amsclient/model_resource_quota_list_all_of.go index 43883a808..b09be4d2f 100644 --- a/pkg/api/ams/amsclient/model_resource_quota_list_all_of.go +++ b/pkg/apis/ams/amsclient/model_resource_quota_list_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullableResourceQuotaListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_resource_quota_request.go b/pkg/apis/ams/amsclient/model_resource_quota_request.go similarity index 94% rename from pkg/api/ams/amsclient/model_resource_quota_request.go rename to pkg/apis/ams/amsclient/model_resource_quota_request.go index ca08d746d..36ac318d0 100644 --- a/pkg/api/ams/amsclient/model_resource_quota_request.go +++ b/pkg/apis/ams/amsclient/model_resource_quota_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // ResourceQuotaRequest struct for ResourceQuotaRequest type ResourceQuotaRequest struct { - Allowed *int32 `json:"allowed,omitempty"` - Sku string `json:"sku"` - SkuCount *int32 `json:"sku_count,omitempty"` - Type *string `json:"type,omitempty"` + Allowed *int32 `json:"allowed,omitempty"` + Sku string `json:"sku"` + SkuCount *int32 `json:"sku_count,omitempty"` + Type *string `json:"type,omitempty"` } // NewResourceQuotaRequest instantiates a new ResourceQuotaRequest object @@ -85,7 +85,7 @@ func (o *ResourceQuotaRequest) GetSku() string { // 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 { + if o == nil { return nil, false } return &o.Sku, true @@ -212,3 +212,5 @@ func (v *NullableResourceQuotaRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_resource_review.go b/pkg/apis/ams/amsclient/model_resource_review.go similarity index 93% rename from pkg/api/ams/amsclient/model_resource_review.go rename to pkg/apis/ams/amsclient/model_resource_review.go index d452fcf55..7e83605f8 100644 --- a/pkg/api/ams/amsclient/model_resource_review.go +++ b/pkg/apis/ams/amsclient/model_resource_review.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,12 +16,12 @@ import ( // 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"` + 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"` + ResourceType string `json:"resource_type"` SubscriptionIds []string `json:"subscription_ids"` } @@ -62,7 +62,7 @@ func (o *ResourceReview) GetAccountUsername() string { // 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 { + if o == nil { return nil, false } return &o.AccountUsername, true @@ -86,7 +86,7 @@ func (o *ResourceReview) GetAction() string { // 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 { + if o == nil { return nil, false } return &o.Action, true @@ -110,7 +110,7 @@ func (o *ResourceReview) GetClusterIds() []string { // 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 { + if o == nil { return nil, false } return &o.ClusterIds, true @@ -134,7 +134,7 @@ func (o *ResourceReview) GetClusterUuids() []string { // 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 { + if o == nil { return nil, false } return &o.ClusterUuids, true @@ -158,7 +158,7 @@ func (o *ResourceReview) GetOrganizationIds() []string { // 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 { + if o == nil { return nil, false } return &o.OrganizationIds, true @@ -182,7 +182,7 @@ func (o *ResourceReview) GetResourceType() string { // 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 { + if o == nil { return nil, false } return &o.ResourceType, true @@ -206,7 +206,7 @@ func (o *ResourceReview) GetSubscriptionIds() []string { // 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 { + if o == nil { return nil, false } return &o.SubscriptionIds, true @@ -278,3 +278,5 @@ func (v *NullableResourceReview) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_resource_review_request.go b/pkg/apis/ams/amsclient/model_resource_review_request.go similarity index 95% rename from pkg/api/ams/amsclient/model_resource_review_request.go rename to pkg/apis/ams/amsclient/model_resource_review_request.go index f0d57db77..32edaa0f8 100644 --- a/pkg/api/ams/amsclient/model_resource_review_request.go +++ b/pkg/apis/ams/amsclient/model_resource_review_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,8 +17,8 @@ import ( // ResourceReviewRequest struct for ResourceReviewRequest type ResourceReviewRequest struct { AccountUsername *string `json:"account_username,omitempty"` - Action *string `json:"action,omitempty"` - ResourceType *string `json:"resource_type,omitempty"` + Action *string `json:"action,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` } // NewResourceReviewRequest instantiates a new ResourceReviewRequest object @@ -183,3 +183,5 @@ func (v *NullableResourceReviewRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_role.go b/pkg/apis/ams/amsclient/model_role.go similarity index 94% rename from pkg/api/ams/amsclient/model_role.go rename to pkg/apis/ams/amsclient/model_role.go index 41f1188cd..62f254293 100644 --- a/pkg/api/ams/amsclient/model_role.go +++ b/pkg/apis/ams/amsclient/model_role.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // 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"` + 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"` } @@ -255,3 +255,5 @@ func (v *NullableRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_role_all_of.go b/pkg/apis/ams/amsclient/model_role_all_of.go similarity index 95% rename from pkg/api/ams/amsclient/model_role_all_of.go rename to pkg/apis/ams/amsclient/model_role_all_of.go index b6886f560..d67eedcec 100644 --- a/pkg/api/ams/amsclient/model_role_all_of.go +++ b/pkg/apis/ams/amsclient/model_role_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,7 +16,7 @@ import ( // RoleAllOf struct for RoleAllOf type RoleAllOf struct { - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Permissions *[]Permission `json:"permissions,omitempty"` } @@ -147,3 +147,5 @@ func (v *NullableRoleAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_role_binding.go b/pkg/apis/ams/amsclient/model_role_binding.go similarity index 93% rename from pkg/api/ams/amsclient/model_role_binding.go rename to pkg/apis/ams/amsclient/model_role_binding.go index 607b29d82..a3d3a19e7 100644 --- a/pkg/api/ams/amsclient/model_role_binding.go +++ b/pkg/apis/ams/amsclient/model_role_binding.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,17 +17,17 @@ import ( // 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"` - ConfigManaged *bool `json:"config_managed,omitempty"` - CreatedAt *time.Time `json:"created_at,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"` + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Account *ObjectReference `json:"account,omitempty"` + ConfigManaged *bool `json:"config_managed,omitempty"` + CreatedAt *time.Time `json:"created_at,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 @@ -472,3 +472,5 @@ func (v *NullableRoleBinding) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_role_binding_all_of.go b/pkg/apis/ams/amsclient/model_role_binding_all_of.go similarity index 94% rename from pkg/api/ams/amsclient/model_role_binding_all_of.go rename to pkg/apis/ams/amsclient/model_role_binding_all_of.go index e51796284..624e978f1 100644 --- a/pkg/api/ams/amsclient/model_role_binding_all_of.go +++ b/pkg/apis/ams/amsclient/model_role_binding_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,14 +17,14 @@ import ( // RoleBindingAllOf struct for RoleBindingAllOf type RoleBindingAllOf struct { - Account *ObjectReference `json:"account,omitempty"` - ConfigManaged *bool `json:"config_managed,omitempty"` - CreatedAt *time.Time `json:"created_at,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"` + Account *ObjectReference `json:"account,omitempty"` + ConfigManaged *bool `json:"config_managed,omitempty"` + CreatedAt *time.Time `json:"created_at,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 @@ -364,3 +364,5 @@ func (v *NullableRoleBindingAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_role_binding_create_request.go b/pkg/apis/ams/amsclient/model_role_binding_create_request.go similarity index 95% rename from pkg/api/ams/amsclient/model_role_binding_create_request.go rename to pkg/apis/ams/amsclient/model_role_binding_create_request.go index d6d01ce54..0e6ef3b45 100644 --- a/pkg/api/ams/amsclient/model_role_binding_create_request.go +++ b/pkg/apis/ams/amsclient/model_role_binding_create_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,12 +16,12 @@ import ( // RoleBindingCreateRequest struct for RoleBindingCreateRequest type RoleBindingCreateRequest struct { - AccountId string `json:"account_id"` - ConfigManaged *bool `json:"config_managed,omitempty"` + AccountId string `json:"account_id"` + ConfigManaged *bool `json:"config_managed,omitempty"` OrganizationId *string `json:"organization_id,omitempty"` - RoleId string `json:"role_id"` + RoleId string `json:"role_id"` SubscriptionId *string `json:"subscription_id,omitempty"` - Type string `json:"type"` + Type string `json:"type"` } // NewRoleBindingCreateRequest instantiates a new RoleBindingCreateRequest object @@ -57,7 +57,7 @@ func (o *RoleBindingCreateRequest) GetAccountId() string { // GetAccountIdOk returns a tuple with the AccountId field value // and a boolean to check if the value has been set. func (o *RoleBindingCreateRequest) GetAccountIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccountId, true @@ -145,7 +145,7 @@ func (o *RoleBindingCreateRequest) GetRoleId() string { // 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 { + if o == nil { return nil, false } return &o.RoleId, true @@ -201,7 +201,7 @@ func (o *RoleBindingCreateRequest) GetType() string { // 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 { + if o == nil { return nil, false } return &o.Type, true @@ -270,3 +270,5 @@ func (v *NullableRoleBindingCreateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_role_binding_list.go b/pkg/apis/ams/amsclient/model_role_binding_list.go similarity index 93% rename from pkg/api/ams/amsclient/model_role_binding_list.go rename to pkg/apis/ams/amsclient/model_role_binding_list.go index cbc944a3f..49f016341 100644 --- a/pkg/api/ams/amsclient/model_role_binding_list.go +++ b/pkg/apis/ams/amsclient/model_role_binding_list.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // RoleBindingList struct for RoleBindingList type RoleBindingList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []RoleBinding `json:"items"` } @@ -58,7 +58,7 @@ func (o *RoleBindingList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *RoleBindingList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *RoleBindingList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *RoleBindingList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *RoleBindingList) GetItems() []RoleBinding { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,3 +220,5 @@ func (v *NullableRoleBindingList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_role_binding_list_all_of.go b/pkg/apis/ams/amsclient/model_role_binding_list_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_role_binding_list_all_of.go rename to pkg/apis/ams/amsclient/model_role_binding_list_all_of.go index 1047e174a..4637abf42 100644 --- a/pkg/api/ams/amsclient/model_role_binding_list_all_of.go +++ b/pkg/apis/ams/amsclient/model_role_binding_list_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullableRoleBindingListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_role_binding_request.go b/pkg/apis/ams/amsclient/model_role_binding_request.go similarity index 96% rename from pkg/api/ams/amsclient/model_role_binding_request.go rename to pkg/apis/ams/amsclient/model_role_binding_request.go index 823331e86..2426953a4 100644 --- a/pkg/api/ams/amsclient/model_role_binding_request.go +++ b/pkg/apis/ams/amsclient/model_role_binding_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,12 +16,12 @@ import ( // RoleBindingRequest struct for RoleBindingRequest type RoleBindingRequest struct { - AccountId *string `json:"account_id,omitempty"` - ConfigManaged *bool `json:"config_managed,omitempty"` + AccountId *string `json:"account_id,omitempty"` + ConfigManaged *bool `json:"config_managed,omitempty"` OrganizationId *string `json:"organization_id,omitempty"` - RoleId *string `json:"role_id,omitempty"` + RoleId *string `json:"role_id,omitempty"` SubscriptionId *string `json:"subscription_id,omitempty"` - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` } // NewRoleBindingRequest instantiates a new RoleBindingRequest object @@ -291,3 +291,5 @@ func (v *NullableRoleBindingRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_role_list.go b/pkg/apis/ams/amsclient/model_role_list.go similarity index 93% rename from pkg/api/ams/amsclient/model_role_list.go rename to pkg/apis/ams/amsclient/model_role_list.go index c2a9d5969..bd70ef96c 100644 --- a/pkg/api/ams/amsclient/model_role_list.go +++ b/pkg/apis/ams/amsclient/model_role_list.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // RoleList struct for RoleList type RoleList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Role `json:"items"` } @@ -58,7 +58,7 @@ func (o *RoleList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *RoleList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *RoleList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *RoleList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *RoleList) GetItems() []Role { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,3 +220,5 @@ func (v *NullableRoleList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_role_list_all_of.go b/pkg/apis/ams/amsclient/model_role_list_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_role_list_all_of.go rename to pkg/apis/ams/amsclient/model_role_list_all_of.go index 943c76b60..508edf943 100644 --- a/pkg/api/ams/amsclient/model_role_list_all_of.go +++ b/pkg/apis/ams/amsclient/model_role_list_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullableRoleListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_self_access_review.go b/pkg/apis/ams/amsclient/model_self_access_review.go similarity index 95% rename from pkg/api/ams/amsclient/model_self_access_review.go rename to pkg/apis/ams/amsclient/model_self_access_review.go index 0a3bb6ea9..2d8148173 100644 --- a/pkg/api/ams/amsclient/model_self_access_review.go +++ b/pkg/apis/ams/amsclient/model_self_access_review.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,11 +16,11 @@ import ( // SelfAccessReview struct for SelfAccessReview type SelfAccessReview struct { - Action string `json:"action"` - ClusterId *string `json:"cluster_id,omitempty"` - ClusterUuid *string `json:"cluster_uuid,omitempty"` + 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"` + ResourceType string `json:"resource_type"` SubscriptionId *string `json:"subscription_id,omitempty"` } @@ -56,7 +56,7 @@ func (o *SelfAccessReview) GetAction() string { // 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 { + if o == nil { return nil, false } return &o.Action, true @@ -176,7 +176,7 @@ func (o *SelfAccessReview) GetResourceType() string { // 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 { + if o == nil { return nil, false } return &o.ResourceType, true @@ -277,3 +277,5 @@ func (v *NullableSelfAccessReview) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_self_resource_review.go b/pkg/apis/ams/amsclient/model_self_resource_review.go similarity index 93% rename from pkg/api/ams/amsclient/model_self_resource_review.go rename to pkg/apis/ams/amsclient/model_self_resource_review.go index f77f44649..8ca28561e 100644 --- a/pkg/api/ams/amsclient/model_self_resource_review.go +++ b/pkg/apis/ams/amsclient/model_self_resource_review.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,11 +16,11 @@ import ( // SelfResourceReview struct for SelfResourceReview type SelfResourceReview struct { - Action string `json:"action"` - ClusterIds []string `json:"cluster_ids"` - ClusterUuids []string `json:"cluster_uuids"` + Action string `json:"action"` + ClusterIds []string `json:"cluster_ids"` + ClusterUuids []string `json:"cluster_uuids"` OrganizationIds []string `json:"organization_ids"` - ResourceType string `json:"resource_type"` + ResourceType string `json:"resource_type"` SubscriptionIds []string `json:"subscription_ids"` } @@ -60,7 +60,7 @@ func (o *SelfResourceReview) GetAction() string { // 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 { + if o == nil { return nil, false } return &o.Action, true @@ -84,7 +84,7 @@ func (o *SelfResourceReview) GetClusterIds() []string { // 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 { + if o == nil { return nil, false } return &o.ClusterIds, true @@ -108,7 +108,7 @@ func (o *SelfResourceReview) GetClusterUuids() []string { // 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 { + if o == nil { return nil, false } return &o.ClusterUuids, true @@ -132,7 +132,7 @@ func (o *SelfResourceReview) GetOrganizationIds() []string { // 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 { + if o == nil { return nil, false } return &o.OrganizationIds, true @@ -156,7 +156,7 @@ func (o *SelfResourceReview) GetResourceType() string { // 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 { + if o == nil { return nil, false } return &o.ResourceType, true @@ -180,7 +180,7 @@ func (o *SelfResourceReview) GetSubscriptionIds() []string { // 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 { + if o == nil { return nil, false } return &o.SubscriptionIds, true @@ -249,3 +249,5 @@ func (v *NullableSelfResourceReview) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_self_resource_review_request.go b/pkg/apis/ams/amsclient/model_self_resource_review_request.go similarity index 96% rename from pkg/api/ams/amsclient/model_self_resource_review_request.go rename to pkg/apis/ams/amsclient/model_self_resource_review_request.go index dbd6db822..f444e0192 100644 --- a/pkg/api/ams/amsclient/model_self_resource_review_request.go +++ b/pkg/apis/ams/amsclient/model_self_resource_review_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,7 +16,7 @@ import ( // SelfResourceReviewRequest struct for SelfResourceReviewRequest type SelfResourceReviewRequest struct { - Action *string `json:"action,omitempty"` + Action *string `json:"action,omitempty"` ResourceType *string `json:"resource_type,omitempty"` } @@ -147,3 +147,5 @@ func (v *NullableSelfResourceReviewRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_self_terms_review.go b/pkg/apis/ams/amsclient/model_self_terms_review.go similarity index 95% rename from pkg/api/ams/amsclient/model_self_terms_review.go rename to pkg/apis/ams/amsclient/model_self_terms_review.go index 9616f2261..1f8247644 100644 --- a/pkg/api/ams/amsclient/model_self_terms_review.go +++ b/pkg/apis/ams/amsclient/model_self_terms_review.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,7 +17,7 @@ import ( // SelfTermsReview struct for SelfTermsReview type SelfTermsReview struct { EventCode *string `json:"event_code,omitempty"` - SiteCode *string `json:"site_code,omitempty"` + SiteCode *string `json:"site_code,omitempty"` } // NewSelfTermsReview instantiates a new SelfTermsReview object @@ -147,3 +147,5 @@ func (v *NullableSelfTermsReview) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_sku.go b/pkg/apis/ams/amsclient/model_sku.go similarity index 91% rename from pkg/api/ams/amsclient/model_sku.go rename to pkg/apis/ams/amsclient/model_sku.go index 40051c9b2..977664245 100644 --- a/pkg/api/ams/amsclient/model_sku.go +++ b/pkg/apis/ams/amsclient/model_sku.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,14 +16,14 @@ import ( // SKU struct for SKU type SKU struct { - Href *string `json:"href,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` - Byoc bool `json:"byoc"` - ResourceName *string `json:"resource_name,omitempty"` - ResourceType *string `json:"resource_type,omitempty"` - Resources *[]EphemeralResourceQuota `json:"resources,omitempty"` + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` + Byoc bool `json:"byoc"` + ResourceName *string `json:"resource_name,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` + Resources *[]EphemeralResourceQuota `json:"resources,omitempty"` } // NewSKU instantiates a new SKU object @@ -185,7 +185,7 @@ func (o *SKU) GetByoc() bool { // GetByocOk returns a tuple with the Byoc field value // and a boolean to check if the value has been set. func (o *SKU) GetByocOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Byoc, true @@ -356,3 +356,5 @@ func (v *NullableSKU) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_sku_all_of.go b/pkg/apis/ams/amsclient/model_sku_all_of.go similarity index 92% rename from pkg/api/ams/amsclient/model_sku_all_of.go rename to pkg/apis/ams/amsclient/model_sku_all_of.go index 3190acd37..40de6f0cd 100644 --- a/pkg/api/ams/amsclient/model_sku_all_of.go +++ b/pkg/apis/ams/amsclient/model_sku_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,12 +16,12 @@ import ( // SKUAllOf struct for SKUAllOf type SKUAllOf struct { - AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` - Byoc bool `json:"byoc"` - Id *string `json:"id,omitempty"` - ResourceName *string `json:"resource_name,omitempty"` - ResourceType *string `json:"resource_type,omitempty"` - Resources *[]EphemeralResourceQuota `json:"resources,omitempty"` + AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` + Byoc bool `json:"byoc"` + Id *string `json:"id,omitempty"` + ResourceName *string `json:"resource_name,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` + Resources *[]EphemeralResourceQuota `json:"resources,omitempty"` } // NewSKUAllOf instantiates a new SKUAllOf object @@ -87,7 +87,7 @@ func (o *SKUAllOf) GetByoc() bool { // GetByocOk returns a tuple with the Byoc field value // and a boolean to check if the value has been set. func (o *SKUAllOf) GetByocOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Byoc, true @@ -284,3 +284,5 @@ func (v *NullableSKUAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_sku_list.go b/pkg/apis/ams/amsclient/model_sku_list.go similarity index 92% rename from pkg/api/ams/amsclient/model_sku_list.go rename to pkg/apis/ams/amsclient/model_sku_list.go index 3a3886768..bf1d7d205 100644 --- a/pkg/api/ams/amsclient/model_sku_list.go +++ b/pkg/apis/ams/amsclient/model_sku_list.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,11 +16,11 @@ import ( // 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"` + 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 @@ -58,7 +58,7 @@ func (o *SkuList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *SkuList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *SkuList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *SkuList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *SkuList) GetItems() []SKU { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,3 +220,5 @@ func (v *NullableSkuList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_sku_list_all_of.go b/pkg/apis/ams/amsclient/model_sku_list_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_sku_list_all_of.go rename to pkg/apis/ams/amsclient/model_sku_list_all_of.go index aec570e41..d21e27f7d 100644 --- a/pkg/api/ams/amsclient/model_sku_list_all_of.go +++ b/pkg/apis/ams/amsclient/model_sku_list_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullableSkuListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_sku_rules.go b/pkg/apis/ams/amsclient/model_sku_rules.go similarity index 95% rename from pkg/api/ams/amsclient/model_sku_rules.go rename to pkg/apis/ams/amsclient/model_sku_rules.go index 265e6008e..2608eb33c 100644 --- a/pkg/api/ams/amsclient/model_sku_rules.go +++ b/pkg/apis/ams/amsclient/model_sku_rules.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,12 +16,12 @@ import ( // 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"` + 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"` + Sku *string `json:"sku,omitempty"` } // NewSkuRules instantiates a new SkuRules object @@ -291,3 +291,5 @@ func (v *NullableSkuRules) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_sku_rules_all_of.go b/pkg/apis/ams/amsclient/model_sku_rules_all_of.go similarity index 95% rename from pkg/api/ams/amsclient/model_sku_rules_all_of.go rename to pkg/apis/ams/amsclient/model_sku_rules_all_of.go index 177b170b0..e80bcf413 100644 --- a/pkg/api/ams/amsclient/model_sku_rules_all_of.go +++ b/pkg/apis/ams/amsclient/model_sku_rules_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,9 +16,9 @@ import ( // SkuRulesAllOf struct for SkuRulesAllOf type SkuRulesAllOf struct { - Allowed *int32 `json:"allowed,omitempty"` + Allowed *int32 `json:"allowed,omitempty"` QuotaId *string `json:"quota_id,omitempty"` - Sku *string `json:"sku,omitempty"` + Sku *string `json:"sku,omitempty"` } // NewSkuRulesAllOf instantiates a new SkuRulesAllOf object @@ -183,3 +183,5 @@ func (v *NullableSkuRulesAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_sku_rules_list.go b/pkg/apis/ams/amsclient/model_sku_rules_list.go similarity index 93% rename from pkg/api/ams/amsclient/model_sku_rules_list.go rename to pkg/apis/ams/amsclient/model_sku_rules_list.go index c4811674e..b33eb1f39 100644 --- a/pkg/api/ams/amsclient/model_sku_rules_list.go +++ b/pkg/apis/ams/amsclient/model_sku_rules_list.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // SkuRulesList struct for SkuRulesList type SkuRulesList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []SkuRules `json:"items"` } @@ -58,7 +58,7 @@ func (o *SkuRulesList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *SkuRulesList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *SkuRulesList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *SkuRulesList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *SkuRulesList) GetItems() []SkuRules { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,3 +220,5 @@ func (v *NullableSkuRulesList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_sku_rules_list_all_of.go b/pkg/apis/ams/amsclient/model_sku_rules_list_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_sku_rules_list_all_of.go rename to pkg/apis/ams/amsclient/model_sku_rules_list_all_of.go index 832f419da..65b0a9c78 100644 --- a/pkg/api/ams/amsclient/model_sku_rules_list_all_of.go +++ b/pkg/apis/ams/amsclient/model_sku_rules_list_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullableSkuRulesListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_subscription.go b/pkg/apis/ams/amsclient/model_subscription.go similarity index 94% rename from pkg/api/ams/amsclient/model_subscription.go rename to pkg/apis/ams/amsclient/model_subscription.go index 02e059876..44ffa503a 100644 --- a/pkg/api/ams/amsclient/model_subscription.go +++ b/pkg/apis/ams/amsclient/model_subscription.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,46 +17,46 @@ import ( // Subscription struct for Subscription type Subscription struct { - Href *string `json:"href,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Capabilities *[]Capability `json:"capabilities,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"` - CreatedAt *time.Time `json:"created_at,omitempty"` - Creator *AccountReference `json:"creator,omitempty"` - DisplayName *string `json:"display_name,omitempty"` - ExternalClusterId *string `json:"external_cluster_id,omitempty"` - Labels *[]Label `json:"labels,omitempty"` + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Capabilities *[]Capability `json:"capabilities,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"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Creator *AccountReference `json:"creator,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + ExternalClusterId *string `json:"external_cluster_id,omitempty"` + Labels *[]Label `json:"labels,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"` - Metrics *[]OneMetric `json:"metrics,omitempty"` - NotificationContacts *[]Account `json:"notification_contacts,omitempty"` - OrganizationId *string `json:"organization_id,omitempty"` - Plan *Plan `json:"plan,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"` + LastTelemetryDate *time.Time `json:"last_telemetry_date,omitempty"` + Managed bool `json:"managed"` + Metrics *[]OneMetric `json:"metrics,omitempty"` + NotificationContacts *[]Account `json:"notification_contacts,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + Plan *Plan `json:"plan,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"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - Usage *string `json:"usage,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Usage *string `json:"usage,omitempty"` } // NewSubscription instantiates a new Subscription object @@ -698,7 +698,7 @@ func (o *Subscription) GetManaged() bool { // 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 { + if o == nil { return nil, false } return &o.Managed, true @@ -1369,3 +1369,5 @@ func (v *NullableSubscription) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_subscription_all_of.go b/pkg/apis/ams/amsclient/model_subscription_all_of.go similarity index 94% rename from pkg/api/ams/amsclient/model_subscription_all_of.go rename to pkg/apis/ams/amsclient/model_subscription_all_of.go index 1d205103f..eacb5ff12 100644 --- a/pkg/api/ams/amsclient/model_subscription_all_of.go +++ b/pkg/apis/ams/amsclient/model_subscription_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,43 +17,43 @@ import ( // SubscriptionAllOf struct for SubscriptionAllOf type SubscriptionAllOf struct { - Capabilities *[]Capability `json:"capabilities,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"` - CreatedAt *time.Time `json:"created_at,omitempty"` - Creator *AccountReference `json:"creator,omitempty"` - DisplayName *string `json:"display_name,omitempty"` - ExternalClusterId *string `json:"external_cluster_id,omitempty"` - Labels *[]Label `json:"labels,omitempty"` + Capabilities *[]Capability `json:"capabilities,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"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Creator *AccountReference `json:"creator,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + ExternalClusterId *string `json:"external_cluster_id,omitempty"` + Labels *[]Label `json:"labels,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"` - Metrics *[]OneMetric `json:"metrics,omitempty"` - NotificationContacts *[]Account `json:"notification_contacts,omitempty"` - OrganizationId *string `json:"organization_id,omitempty"` - Plan *Plan `json:"plan,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"` + LastTelemetryDate *time.Time `json:"last_telemetry_date,omitempty"` + Managed bool `json:"managed"` + Metrics *[]OneMetric `json:"metrics,omitempty"` + NotificationContacts *[]Account `json:"notification_contacts,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + Plan *Plan `json:"plan,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"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - Usage *string `json:"usage,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Usage *string `json:"usage,omitempty"` } // NewSubscriptionAllOf instantiates a new SubscriptionAllOf object @@ -599,7 +599,7 @@ func (o *SubscriptionAllOf) GetManaged() bool { // GetManagedOk returns a tuple with the Managed field value // and a boolean to check if the value has been set. func (o *SubscriptionAllOf) GetManagedOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Managed, true @@ -1261,3 +1261,5 @@ func (v *NullableSubscriptionAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_subscription_create_request.go b/pkg/apis/ams/amsclient/model_subscription_create_request.go similarity index 94% rename from pkg/api/ams/amsclient/model_subscription_create_request.go rename to pkg/apis/ams/amsclient/model_subscription_create_request.go index 9f5b8393b..503b1390b 100644 --- a/pkg/api/ams/amsclient/model_subscription_create_request.go +++ b/pkg/apis/ams/amsclient/model_subscription_create_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,11 +16,11 @@ import ( // SubscriptionCreateRequest struct for SubscriptionCreateRequest type SubscriptionCreateRequest struct { - ClusterUuid string `json:"cluster_uuid"` - ConsoleUrl *string `json:"console_url,omitempty"` + 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"` + PlanId string `json:"plan_id"` + Status string `json:"status"` } // NewSubscriptionCreateRequest instantiates a new SubscriptionCreateRequest object @@ -56,7 +56,7 @@ func (o *SubscriptionCreateRequest) GetClusterUuid() string { // 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 { + if o == nil { return nil, false } return &o.ClusterUuid, true @@ -144,7 +144,7 @@ func (o *SubscriptionCreateRequest) GetPlanId() string { // 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 { + if o == nil { return nil, false } return &o.PlanId, true @@ -168,7 +168,7 @@ func (o *SubscriptionCreateRequest) GetStatus() string { // 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 { + if o == nil { return nil, false } return &o.Status, true @@ -234,3 +234,5 @@ func (v *NullableSubscriptionCreateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_subscription_list.go b/pkg/apis/ams/amsclient/model_subscription_list.go similarity index 93% rename from pkg/api/ams/amsclient/model_subscription_list.go rename to pkg/apis/ams/amsclient/model_subscription_list.go index d7536d227..baa4394b6 100644 --- a/pkg/api/ams/amsclient/model_subscription_list.go +++ b/pkg/apis/ams/amsclient/model_subscription_list.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,10 +16,10 @@ import ( // SubscriptionList struct for SubscriptionList type SubscriptionList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Subscription `json:"items"` } @@ -58,7 +58,7 @@ func (o *SubscriptionList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *SubscriptionList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *SubscriptionList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *SubscriptionList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *SubscriptionList) GetItems() []Subscription { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,3 +220,5 @@ func (v *NullableSubscriptionList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_subscription_list_all_of.go b/pkg/apis/ams/amsclient/model_subscription_list_all_of.go similarity index 96% rename from pkg/api/ams/amsclient/model_subscription_list_all_of.go rename to pkg/apis/ams/amsclient/model_subscription_list_all_of.go index da3a838a8..2cf5c998d 100644 --- a/pkg/api/ams/amsclient/model_subscription_list_all_of.go +++ b/pkg/apis/ams/amsclient/model_subscription_list_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullableSubscriptionListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_subscription_patch_request.go b/pkg/apis/ams/amsclient/model_subscription_patch_request.go similarity index 94% rename from pkg/api/ams/amsclient/model_subscription_patch_request.go rename to pkg/apis/ams/amsclient/model_subscription_patch_request.go index fb04e1f94..564cfe12d 100644 --- a/pkg/api/ams/amsclient/model_subscription_patch_request.go +++ b/pkg/apis/ams/amsclient/model_subscription_patch_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,30 +17,30 @@ import ( // SubscriptionPatchRequest struct for SubscriptionPatchRequest type SubscriptionPatchRequest struct { - 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"` + 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 @@ -940,3 +940,5 @@ func (v *NullableSubscriptionPatchRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_summary.go b/pkg/apis/ams/amsclient/model_summary.go similarity index 94% rename from pkg/api/ams/amsclient/model_summary.go rename to pkg/apis/ams/amsclient/model_summary.go index bf50591c9..c52bcdf61 100644 --- a/pkg/api/ams/amsclient/model_summary.go +++ b/pkg/apis/ams/amsclient/model_summary.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,11 +16,11 @@ import ( // Summary struct for Summary type Summary struct { - Href *string `json:"href,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` Metrics []SummaryMetrics `json:"metrics"` - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` } // NewSummary instantiates a new Summary object @@ -150,7 +150,7 @@ func (o *Summary) GetMetrics() []SummaryMetrics { // 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 { + if o == nil { return nil, false } return &o.Metrics, true @@ -248,3 +248,5 @@ func (v *NullableSummary) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_summary_all_of.go b/pkg/apis/ams/amsclient/model_summary_all_of.go similarity index 94% rename from pkg/api/ams/amsclient/model_summary_all_of.go rename to pkg/apis/ams/amsclient/model_summary_all_of.go index 47f80f8fa..13e01b9cf 100644 --- a/pkg/api/ams/amsclient/model_summary_all_of.go +++ b/pkg/apis/ams/amsclient/model_summary_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,7 +17,7 @@ import ( // SummaryAllOf struct for SummaryAllOf type SummaryAllOf struct { Metrics []SummaryMetrics `json:"metrics"` - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` } // NewSummaryAllOf instantiates a new SummaryAllOf object @@ -51,7 +51,7 @@ func (o *SummaryAllOf) GetMetrics() []SummaryMetrics { // 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 { + if o == nil { return nil, false } return &o.Metrics, true @@ -140,3 +140,5 @@ func (v *NullableSummaryAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_summary_metrics.go b/pkg/apis/ams/amsclient/model_summary_metrics.go similarity index 95% rename from pkg/api/ams/amsclient/model_summary_metrics.go rename to pkg/apis/ams/amsclient/model_summary_metrics.go index bc7ad8269..57419ed1d 100644 --- a/pkg/api/ams/amsclient/model_summary_metrics.go +++ b/pkg/apis/ams/amsclient/model_summary_metrics.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,7 +16,7 @@ import ( // SummaryMetrics struct for SummaryMetrics type SummaryMetrics struct { - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Vector *[]SummaryVector `json:"vector,omitempty"` } @@ -147,3 +147,5 @@ func (v *NullableSummaryMetrics) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_summary_metrics_all_of.go b/pkg/apis/ams/amsclient/model_summary_metrics_all_of.go similarity index 95% rename from pkg/api/ams/amsclient/model_summary_metrics_all_of.go rename to pkg/apis/ams/amsclient/model_summary_metrics_all_of.go index 06c40316d..d445501b7 100644 --- a/pkg/api/ams/amsclient/model_summary_metrics_all_of.go +++ b/pkg/apis/ams/amsclient/model_summary_metrics_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,7 +16,7 @@ import ( // SummaryMetricsAllOf struct for SummaryMetricsAllOf type SummaryMetricsAllOf struct { - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Vector *[]SummaryVector `json:"vector,omitempty"` } @@ -147,3 +147,5 @@ func (v *NullableSummaryMetricsAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_summary_vector.go b/pkg/apis/ams/amsclient/model_summary_vector.go similarity index 94% rename from pkg/api/ams/amsclient/model_summary_vector.go rename to pkg/apis/ams/amsclient/model_summary_vector.go index ac6b149b8..1445db9ea 100644 --- a/pkg/api/ams/amsclient/model_summary_vector.go +++ b/pkg/apis/ams/amsclient/model_summary_vector.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,8 +17,8 @@ import ( // SummaryVector struct for SummaryVector type SummaryVector struct { - Time *time.Time `json:"time,omitempty"` - Value *float64 `json:"value,omitempty"` + Time *time.Time `json:"time,omitempty"` + Value *float64 `json:"value,omitempty"` } // NewSummaryVector instantiates a new SummaryVector object @@ -148,3 +148,5 @@ func (v *NullableSummaryVector) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_summary_vector_all_of.go b/pkg/apis/ams/amsclient/model_summary_vector_all_of.go similarity index 94% rename from pkg/api/ams/amsclient/model_summary_vector_all_of.go rename to pkg/apis/ams/amsclient/model_summary_vector_all_of.go index bc0bd40b5..f4127b35c 100644 --- a/pkg/api/ams/amsclient/model_summary_vector_all_of.go +++ b/pkg/apis/ams/amsclient/model_summary_vector_all_of.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,8 +17,8 @@ import ( // SummaryVectorAllOf struct for SummaryVectorAllOf type SummaryVectorAllOf struct { - Time *time.Time `json:"time,omitempty"` - Value *float64 `json:"value,omitempty"` + Time *time.Time `json:"time,omitempty"` + Value *float64 `json:"value,omitempty"` } // NewSummaryVectorAllOf instantiates a new SummaryVectorAllOf object @@ -148,3 +148,5 @@ func (v *NullableSummaryVectorAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_support_cases_created_response.go b/pkg/apis/ams/amsclient/model_support_cases_created_response.go similarity index 95% rename from pkg/api/ams/amsclient/model_support_cases_created_response.go rename to pkg/apis/ams/amsclient/model_support_cases_created_response.go index 84dba34f3..1da7c5572 100644 --- a/pkg/api/ams/amsclient/model_support_cases_created_response.go +++ b/pkg/apis/ams/amsclient/model_support_cases_created_response.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,15 +16,15 @@ import ( // 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"` + 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"` + Summary *string `json:"summary,omitempty"` + Uri *string `json:"uri,omitempty"` } // NewSupportCasesCreatedResponse instantiates a new SupportCasesCreatedResponse object @@ -399,3 +399,5 @@ func (v *NullableSupportCasesCreatedResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_support_cases_request.go b/pkg/apis/ams/amsclient/model_support_cases_request.go similarity index 94% rename from pkg/api/ams/amsclient/model_support_cases_request.go rename to pkg/apis/ams/amsclient/model_support_cases_request.go index 6ff85a233..7d9b28ab8 100644 --- a/pkg/api/ams/amsclient/model_support_cases_request.go +++ b/pkg/apis/ams/amsclient/model_support_cases_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,19 +16,19 @@ import ( // 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"` + 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"` + 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 @@ -232,7 +232,7 @@ func (o *SupportCasesRequest) GetDescription() string { // 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 { + if o == nil { return nil, false } return &o.Description, true @@ -352,7 +352,7 @@ func (o *SupportCasesRequest) GetSeverity() string { // 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 { + if o == nil { return nil, false } return &o.Severity, true @@ -408,7 +408,7 @@ func (o *SupportCasesRequest) GetSummary() string { // 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 { + if o == nil { return nil, false } return &o.Summary, true @@ -530,3 +530,5 @@ func (v *NullableSupportCasesRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_template_parameter.go b/pkg/apis/ams/amsclient/model_template_parameter.go similarity index 94% rename from pkg/api/ams/amsclient/model_template_parameter.go rename to pkg/apis/ams/amsclient/model_template_parameter.go index 0fb39b552..0865111ca 100644 --- a/pkg/api/ams/amsclient/model_template_parameter.go +++ b/pkg/apis/ams/amsclient/model_template_parameter.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -17,7 +17,7 @@ import ( // TemplateParameter struct for TemplateParameter type TemplateParameter struct { Content string `json:"content"` - Name string `json:"name"` + Name string `json:"name"` } // NewTemplateParameter instantiates a new TemplateParameter object @@ -52,7 +52,7 @@ func (o *TemplateParameter) GetContent() string { // 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 { + if o == nil { return nil, false } return &o.Content, true @@ -76,7 +76,7 @@ func (o *TemplateParameter) GetName() string { // 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 { + if o == nil { return nil, false } return &o.Name, true @@ -133,3 +133,5 @@ func (v *NullableTemplateParameter) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_terms_review.go b/pkg/apis/ams/amsclient/model_terms_review.go similarity index 93% rename from pkg/api/ams/amsclient/model_terms_review.go rename to pkg/apis/ams/amsclient/model_terms_review.go index 7d5c49fb1..c44f2f56e 100644 --- a/pkg/api/ams/amsclient/model_terms_review.go +++ b/pkg/apis/ams/amsclient/model_terms_review.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,9 +16,9 @@ import ( // TermsReview struct for TermsReview type TermsReview struct { - AccountUsername string `json:"account_username"` - EventCode *string `json:"event_code,omitempty"` - SiteCode *string `json:"site_code,omitempty"` + AccountUsername string `json:"account_username"` + EventCode *string `json:"event_code,omitempty"` + SiteCode *string `json:"site_code,omitempty"` } // NewTermsReview instantiates a new TermsReview object @@ -52,7 +52,7 @@ func (o *TermsReview) GetAccountUsername() string { // 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 { + if o == nil { return nil, false } return &o.AccountUsername, true @@ -176,3 +176,5 @@ func (v *NullableTermsReview) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_terms_review_response.go b/pkg/apis/ams/amsclient/model_terms_review_response.go similarity index 93% rename from pkg/api/ams/amsclient/model_terms_review_response.go rename to pkg/apis/ams/amsclient/model_terms_review_response.go index 621f1a4bf..7bb71b968 100644 --- a/pkg/api/ams/amsclient/model_terms_review_response.go +++ b/pkg/apis/ams/amsclient/model_terms_review_response.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -16,11 +16,11 @@ import ( // 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"` + 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 @@ -57,7 +57,7 @@ func (o *TermsReviewResponse) GetAccountId() string { // 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 { + if o == nil { return nil, false } return &o.AccountId, true @@ -81,7 +81,7 @@ func (o *TermsReviewResponse) GetOrganizationId() string { // 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 { + if o == nil { return nil, false } return &o.OrganizationId, true @@ -137,7 +137,7 @@ func (o *TermsReviewResponse) GetTermsAvailable() bool { // 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 { + if o == nil { return nil, false } return &o.TermsAvailable, true @@ -161,7 +161,7 @@ func (o *TermsReviewResponse) GetTermsRequired() bool { // 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 { + if o == nil { return nil, false } return &o.TermsRequired, true @@ -227,3 +227,5 @@ func (v *NullableTermsReviewResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_token_authorization_request.go b/pkg/apis/ams/amsclient/model_token_authorization_request.go similarity index 96% rename from pkg/api/ams/amsclient/model_token_authorization_request.go rename to pkg/apis/ams/amsclient/model_token_authorization_request.go index 10ba27aa0..613f6313d 100644 --- a/pkg/api/ams/amsclient/model_token_authorization_request.go +++ b/pkg/apis/ams/amsclient/model_token_authorization_request.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullableTokenAuthorizationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/model_token_authorization_response.go b/pkg/apis/ams/amsclient/model_token_authorization_response.go similarity index 96% rename from pkg/api/ams/amsclient/model_token_authorization_response.go rename to pkg/apis/ams/amsclient/model_token_authorization_response.go index 3f392306b..0af89c61f 100644 --- a/pkg/api/ams/amsclient/model_token_authorization_response.go +++ b/pkg/apis/ams/amsclient/model_token_authorization_response.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -111,3 +111,5 @@ func (v *NullableTokenAuthorizationResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/pkg/api/ams/amsclient/response.go b/pkg/apis/ams/amsclient/response.go similarity index 88% rename from pkg/api/ams/amsclient/response.go rename to pkg/apis/ams/amsclient/response.go index ec27d4d73..60a989233 100644 --- a/pkg/api/ams/amsclient/response.go +++ b/pkg/apis/ams/amsclient/response.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. @@ -32,14 +32,16 @@ type APIResponse struct { Payload []byte `json:"-"` } -// NewAPIResponse returns a new APIResonse object. +// 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/pkg/api/ams/amsclient/utils.go b/pkg/apis/ams/amsclient/utils.go similarity index 98% rename from pkg/api/ams/amsclient/utils.go rename to pkg/apis/ams/amsclient/utils.go index c7acb73e4..d9b083fd0 100644 --- a/pkg/api/ams/amsclient/utils.go +++ b/pkg/apis/ams/amsclient/utils.go @@ -1,10 +1,10 @@ /* - * Account Management Service API - * - * Manage user subscriptions and clusters - * - * API version: 0.0.1 - */ +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. diff --git a/pkg/apis/apis.go b/pkg/apis/apis.go new file mode 100644 index 000000000..79e5d55f7 --- /dev/null +++ b/pkg/apis/apis.go @@ -0,0 +1,3 @@ +// +build ignore + +package apis diff --git a/pkg/api/rbac/api.go b/pkg/apis/rbac/api.go similarity index 100% rename from pkg/api/rbac/api.go rename to pkg/apis/rbac/api.go diff --git a/pkg/api/rbac/rbacutil/api_util.go b/pkg/apis/rbac/rbacutil/api_util.go similarity index 93% rename from pkg/api/rbac/rbacutil/api_util.go rename to pkg/apis/rbac/rbacutil/api_util.go index e5638694f..b312a0aaa 100644 --- a/pkg/api/rbac/rbacutil/api_util.go +++ b/pkg/apis/rbac/rbacutil/api_util.go @@ -3,7 +3,7 @@ package rbacutil import ( "context" - "github.com/redhat-developer/app-services-cli/pkg/api/rbac" + "github.com/redhat-developer/app-services-cli/pkg/apis/rbac" ) // FetchAllUsers retrieves and returns every user within the current user's organization with the applied filters diff --git a/pkg/auth/login/login.go b/pkg/auth/login/login.go index 36d539e01..3213c4557 100644 --- a/pkg/auth/login/login.go +++ b/pkg/auth/login/login.go @@ -3,18 +3,18 @@ package login import ( "context" "fmt" + "github.com/redhat-developer/app-services-cli/pkg/auth/pkce" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/browser" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" "log" "net/http" "net/url" "github.com/coreos/go-oidc/v3/oidc" "github.com/phayes/freeport" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/auth/pkce" - "github.com/redhat-developer/app-services-cli/pkg/browser" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" "github.com/redhat-developer/app-services-cli/static" "golang.org/x/oauth2" ) diff --git a/pkg/auth/login/mas_sso_redirect_handler.go b/pkg/auth/login/mas_sso_redirect_handler.go index 16e2399c4..2eaeb28ff 100644 --- a/pkg/auth/login/mas_sso_redirect_handler.go +++ b/pkg/auth/login/mas_sso_redirect_handler.go @@ -2,6 +2,11 @@ package login import ( "context" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + // embed static HTML file _ "embed" "encoding/json" @@ -11,10 +16,6 @@ import ( "os" "github.com/coreos/go-oidc/v3/oidc" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" "golang.org/x/oauth2" ) diff --git a/pkg/auth/login/sso_redirect_handler.go b/pkg/auth/login/sso_redirect_handler.go index 12179bdb1..7738765ad 100644 --- a/pkg/auth/login/sso_redirect_handler.go +++ b/pkg/auth/login/sso_redirect_handler.go @@ -2,6 +2,14 @@ package login import ( "context" + "github.com/redhat-developer/app-services-cli/pkg/auth/token" + + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection/kcconnection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + // embed static HTML file _ "embed" "encoding/json" @@ -11,12 +19,6 @@ import ( "os" "github.com/coreos/go-oidc/v3/oidc" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/auth/token" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" "golang.org/x/oauth2" ) @@ -93,7 +95,7 @@ func (h *redirectPageHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) pageTitle := h.Localizer.MustLocalize("login.redirectPage.title") pageBody := h.Localizer.MustLocalize("login.redirectPage.body", localize.NewEntry("Username", username)) - issuerURL, realm, ok := connection.SplitKeycloakRealmURL(h.AuthURL) + issuerURL, realm, ok := kcconnection.SplitKeycloakRealmURL(h.AuthURL) if !ok { h.Logger.Error(h.Localizer.MustLocalize("login.error.noRealmInURL")) os.Exit(1) diff --git a/pkg/auth/login/static/sso-redirect-page.html b/pkg/auth/login/static/sso-redirect-page.html index 4d1622f7f..1387bf74c 100644 --- a/pkg/auth/login/static/sso-redirect-page.html +++ b/pkg/auth/login/static/sso-redirect-page.html @@ -1,27 +1,27 @@ - - %v - + + %v + -
+
- Logo -

%v

-
%v
+ Logo +

%v

+
%v
-
+
\ No newline at end of file diff --git a/pkg/auth/token/token.go b/pkg/auth/token/token.go index 383c61ae7..4aee5e6ca 100644 --- a/pkg/auth/token/token.go +++ b/pkg/auth/token/token.go @@ -4,8 +4,9 @@ import ( "fmt" "time" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/golang-jwt/jwt/v4" - "github.com/redhat-developer/app-services-cli/pkg/logging" ) // Token contains the current access and refresh tokens from the Authorization server diff --git a/pkg/cmd/cluster/bind/bind.go b/pkg/cmd/cluster/bind/bind.go index 0606e5941..2d3f1d057 100644 --- a/pkg/cmd/cluster/bind/bind.go +++ b/pkg/cmd/cluster/bind/bind.go @@ -2,17 +2,16 @@ package bind import ( "context" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cluster" - "github.com/redhat-developer/app-services-cli/pkg/cluster/kubeclient" - "github.com/redhat-developer/app-services-cli/pkg/cluster/services/resources" - "github.com/redhat-developer/app-services-cli/pkg/cluster/v1alpha" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/kubeclient" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/services/resources" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/v1alpha" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" "github.com/spf13/cobra" ) diff --git a/pkg/cmd/cluster/clean/clean.go b/pkg/cmd/cluster/clean/clean.go index e28fa7066..93a97d53c 100644 --- a/pkg/cmd/cluster/clean/clean.go +++ b/pkg/cmd/cluster/clean/clean.go @@ -3,17 +3,15 @@ package clean import ( "context" - "github.com/redhat-developer/app-services-cli/pkg/cluster" - "github.com/redhat-developer/app-services-cli/pkg/cluster/kubeclient" - "github.com/redhat-developer/app-services-cli/pkg/cluster/v1alpha" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/logging" - + "github.com/redhat-developer/app-services-cli/pkg/core/cluster" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/kubeclient" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/v1alpha" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" "github.com/spf13/cobra" // Get all auth schemes diff --git a/pkg/cmd/cluster/cluster.go b/pkg/cmd/cluster/cluster.go index 84bec02bb..869bcb003 100644 --- a/pkg/cmd/cluster/cluster.go +++ b/pkg/cmd/cluster/cluster.go @@ -5,7 +5,7 @@ import ( "github.com/redhat-developer/app-services-cli/pkg/cmd/cluster/clean" "github.com/redhat-developer/app-services-cli/pkg/cmd/cluster/connect" "github.com/redhat-developer/app-services-cli/pkg/cmd/cluster/status" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" "github.com/spf13/cobra" ) diff --git a/pkg/cmd/cluster/connect/connect.go b/pkg/cmd/cluster/connect/connect.go index 5a0ef946f..8a940acc4 100644 --- a/pkg/cmd/cluster/connect/connect.go +++ b/pkg/cmd/cluster/connect/connect.go @@ -2,18 +2,17 @@ package connect import ( "context" - "github.com/redhat-developer/app-services-cli/internal/build" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cluster" - "github.com/redhat-developer/app-services-cli/pkg/cluster/kubeclient" - "github.com/redhat-developer/app-services-cli/pkg/cluster/services/resources" - "github.com/redhat-developer/app-services-cli/pkg/cluster/v1alpha" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/kubeclient" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/services/resources" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/v1alpha" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" "github.com/spf13/cobra" ) diff --git a/pkg/cmd/cluster/status/status.go b/pkg/cmd/cluster/status/status.go index 6f91152bd..ccd8eddc7 100644 --- a/pkg/cmd/cluster/status/status.go +++ b/pkg/cmd/cluster/status/status.go @@ -3,19 +3,16 @@ package status import ( "context" "fmt" - - "github.com/redhat-developer/app-services-cli/pkg/cluster" - "github.com/redhat-developer/app-services-cli/pkg/cluster/kubeclient" - "github.com/redhat-developer/app-services-cli/pkg/cluster/v1alpha" - "github.com/redhat-developer/app-services-cli/pkg/color" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/logging" - + "github.com/redhat-developer/app-services-cli/pkg/core/cluster" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/kubeclient" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/v1alpha" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/color" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" "github.com/spf13/cobra" // Get all auth schemes diff --git a/pkg/cmd/completion/bash/bash.go b/pkg/cmd/completion/bash/bash.go index eed4765d9..f42b76070 100644 --- a/pkg/cmd/completion/bash/bash.go +++ b/pkg/cmd/completion/bash/bash.go @@ -1,7 +1,7 @@ package bash import ( - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" "github.com/spf13/cobra" ) diff --git a/pkg/cmd/completion/completion.go b/pkg/cmd/completion/completion.go index 43ae1b32b..cfa97e997 100644 --- a/pkg/cmd/completion/completion.go +++ b/pkg/cmd/completion/completion.go @@ -4,7 +4,7 @@ import ( "github.com/redhat-developer/app-services-cli/pkg/cmd/completion/bash" "github.com/redhat-developer/app-services-cli/pkg/cmd/completion/fish" "github.com/redhat-developer/app-services-cli/pkg/cmd/completion/zsh" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" "github.com/spf13/cobra" ) diff --git a/pkg/cmd/completion/fish/fish.go b/pkg/cmd/completion/fish/fish.go index 924e08de7..15f402ced 100644 --- a/pkg/cmd/completion/fish/fish.go +++ b/pkg/cmd/completion/fish/fish.go @@ -1,7 +1,7 @@ package fish import ( - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" "github.com/spf13/cobra" ) diff --git a/pkg/cmd/completion/zsh/zsh.go b/pkg/cmd/completion/zsh/zsh.go index be16bd678..1721dee00 100644 --- a/pkg/cmd/completion/zsh/zsh.go +++ b/pkg/cmd/completion/zsh/zsh.go @@ -1,7 +1,7 @@ package zsh import ( - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" "github.com/spf13/cobra" ) diff --git a/pkg/cmd/docs/docs.go b/pkg/cmd/docs/docs.go index 12920f334..32e43bcd3 100644 --- a/pkg/cmd/docs/docs.go +++ b/pkg/cmd/docs/docs.go @@ -4,9 +4,10 @@ import ( "fmt" "time" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - rhoasdoc "github.com/redhat-developer/app-services-cli/pkg/doc" - "github.com/redhat-developer/app-services-cli/pkg/logging" + rhoasdoc "github.com/redhat-developer/app-services-cli/internal/doc" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/spf13/cobra" "github.com/spf13/cobra/doc" ) diff --git a/pkg/cmd/flag/validation.go b/pkg/cmd/flag/validation.go deleted file mode 100644 index 53866b9b5..000000000 --- a/pkg/cmd/flag/validation.go +++ /dev/null @@ -1,16 +0,0 @@ -package flag - -import ( - "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" -) - -// ValidateOutput checks if value v is a valid value for --output -func ValidateOutput(v string) error { - isValid := flagutil.IsValidInput(v, flagutil.ValidOutputFormats...) - - if isValid { - return nil - } - - return InvalidValueError("output", v, flagutil.ValidOutputFormats...) -} diff --git a/pkg/cmd/kafka/acl/acl.go b/pkg/cmd/kafka/acl/acl.go index 84a3b65b1..c48b738f1 100644 --- a/pkg/cmd/kafka/acl/acl.go +++ b/pkg/cmd/kafka/acl/acl.go @@ -1,12 +1,12 @@ package acl import ( - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/acl/admin" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/acl/create" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/acl/delete" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/acl/grant" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/acl/list" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" "github.com/spf13/cobra" ) diff --git a/pkg/cmd/kafka/acl/admin/admin.go b/pkg/cmd/kafka/acl/admin/admin.go index 378b66029..d80a5728c 100644 --- a/pkg/cmd/kafka/acl/admin/admin.go +++ b/pkg/cmd/kafka/acl/admin/admin.go @@ -3,20 +3,20 @@ package admin import ( "context" + flagset "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/acl/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/kafkautil/aclutil" + "github.com/AlecAivazis/survey/v2" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/icon" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/kafka/aclutil" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" "github.com/spf13/cobra" - flagset "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/acl/flagutil" - kafkainstanceclient "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal/client" ) diff --git a/pkg/cmd/kafka/acl/create/create.go b/pkg/cmd/kafka/acl/create/create.go index 03538beeb..5f44f169a 100644 --- a/pkg/cmd/kafka/acl/create/create.go +++ b/pkg/cmd/kafka/acl/create/create.go @@ -2,15 +2,15 @@ package create import ( "github.com/AlecAivazis/survey/v2" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/acl/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/cmdutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/ioutil/spinner" - "github.com/redhat-developer/app-services-cli/pkg/kafka/aclutil" - "github.com/redhat-developer/app-services-cli/pkg/localize" + aclFlagutil "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/acl/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/spinner" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/kafkautil/aclutil" kafkainstanceclient "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal/client" "github.com/spf13/cobra" ) @@ -50,7 +50,7 @@ func NewCreateCommand(f *factory.Factory) *cobra.Command { Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, _ []string) error { if !opts.IO.CanPrompt() && !opts.SkipConfirm { - return flag.RequiredWhenNonInteractiveError("yes") + return flagutil.RequiredWhenNonInteractiveError("yes") } var errorCollection []error @@ -63,7 +63,7 @@ func NewCreateCommand(f *factory.Factory) *cobra.Command { errorCollection = append(errorCollection, opts.Localizer.MustLocalizeError("kafka.acl.common.flag.operation.required")) } - if resourceErrors := aclutil.ValidateAndSetResources(opts, flagutil.ResourceTypeFlagEntries); resourceErrors != nil { + if resourceErrors := aclutil.ValidateAndSetResources(opts, aclFlagutil.ResourceTypeFlagEntries); resourceErrors != nil { errorCollection = append(errorCollection, resourceErrors) } @@ -79,7 +79,7 @@ func NewCreateCommand(f *factory.Factory) *cobra.Command { }, } - flags := flagutil.NewFlagSet(cmd, f) + flags := aclFlagutil.NewFlagSet(cmd, f) flags.AddPermissionCreate(&opts.Permission) flags.AddOperationCreate(&opts.Operation) diff --git a/pkg/cmd/kafka/acl/delete/delete.go b/pkg/cmd/kafka/acl/delete/delete.go index 24223172c..ce532e241 100644 --- a/pkg/cmd/kafka/acl/delete/delete.go +++ b/pkg/cmd/kafka/acl/delete/delete.go @@ -2,16 +2,16 @@ package delete import ( "github.com/AlecAivazis/survey/v2" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/acl/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/cmdutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/icon" - "github.com/redhat-developer/app-services-cli/pkg/ioutil/spinner" - "github.com/redhat-developer/app-services-cli/pkg/kafka/aclutil" - "github.com/redhat-developer/app-services-cli/pkg/localize" + aclFlagUtil "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/acl/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/spinner" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/kafkautil/aclutil" kafkainstanceclient "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal/client" "github.com/spf13/cobra" ) @@ -51,7 +51,7 @@ func NewDeleteCommand(f *factory.Factory) *cobra.Command { Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, _ []string) error { if !opts.IO.CanPrompt() && !opts.SkipConfirm { - return flag.RequiredWhenNonInteractiveError("yes") + return flagutil.RequiredWhenNonInteractiveError("yes") } var errorCollection []error @@ -60,7 +60,7 @@ func NewDeleteCommand(f *factory.Factory) *cobra.Command { errorCollection = append(errorCollection, opts.Localizer.MustLocalizeError("kafka.acl.common.flag.operation.required")) } - if resourceErrors := aclutil.ValidateAndSetResources(opts, flagutil.ResourceTypeFlagEntries); resourceErrors != nil { + if resourceErrors := aclutil.ValidateAndSetResources(opts, aclFlagUtil.ResourceTypeFlagEntries); resourceErrors != nil { errorCollection = append(errorCollection, resourceErrors) } @@ -76,7 +76,7 @@ func NewDeleteCommand(f *factory.Factory) *cobra.Command { }, } - flags := flagutil.NewFlagSet(cmd, f) + flags := aclFlagUtil.NewFlagSet(cmd, f) flags.AddPermissionFilter(&opts.Permission) flags.AddOperationFilter(&opts.Operation) diff --git a/pkg/cmd/kafka/acl/flagutil/flagset.go b/pkg/cmd/kafka/acl/flagutil/flagset.go index 0220923e5..618f10046 100644 --- a/pkg/cmd/kafka/acl/flagutil/flagset.go +++ b/pkg/cmd/kafka/acl/flagutil/flagset.go @@ -1,10 +1,10 @@ package flagutil import ( - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/kafka/aclutil" - "github.com/redhat-developer/app-services-cli/pkg/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/kafkautil/aclutil" "github.com/spf13/cobra" ) @@ -15,7 +15,7 @@ const ( TransactionalIDFlagName = "transactional-id" ) -var ResourceTypeFlagEntries []*localize.TemplateEntry = []*localize.TemplateEntry{ +var ResourceTypeFlagEntries = []*localize.TemplateEntry{ localize.NewEntry("ClusterFlag", ClusterFlagName), localize.NewEntry("TopicFlag", TopicFlagName), localize.NewEntry("TransactionalIDFlag", TransactionalIDFlagName), diff --git a/pkg/cmd/kafka/acl/grant/grant.go b/pkg/cmd/kafka/acl/grant/grant.go index 795d3934a..e336aa181 100644 --- a/pkg/cmd/kafka/acl/grant/grant.go +++ b/pkg/cmd/kafka/acl/grant/grant.go @@ -3,20 +3,20 @@ package grant import ( "context" + "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/acl/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/kafkautil/aclutil" + "github.com/AlecAivazis/survey/v2" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" "github.com/spf13/cobra" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/acl/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/icon" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/kafka/aclutil" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" - kafkainstanceclient "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal/client" ) diff --git a/pkg/cmd/kafka/acl/list/list.go b/pkg/cmd/kafka/acl/list/list.go index cfa6cf532..3714b6068 100644 --- a/pkg/cmd/kafka/acl/list/list.go +++ b/pkg/cmd/kafka/acl/list/list.go @@ -3,18 +3,18 @@ package list import ( "context" - "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/acl/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/kafka/aclutil" - kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafka/cmdutil" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" + kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafkautil" + "github.com/redhat-developer/app-services-cli/pkg/kafkautil/aclutil" + + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/spf13/cobra" ) var ( diff --git a/pkg/cmd/kafka/consumergroup/consumergroup.go b/pkg/cmd/kafka/consumergroup/consumergroup.go index e36161e99..bc08affcd 100644 --- a/pkg/cmd/kafka/consumergroup/consumergroup.go +++ b/pkg/cmd/kafka/consumergroup/consumergroup.go @@ -1,11 +1,11 @@ package consumergroup import ( - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/consumergroup/delete" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/consumergroup/describe" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/consumergroup/list" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/consumergroup/resetoffset" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" "github.com/spf13/cobra" ) diff --git a/pkg/cmd/kafka/consumergroup/delete/delete.go b/pkg/cmd/kafka/consumergroup/delete/delete.go index 652757908..caf983af4 100644 --- a/pkg/cmd/kafka/consumergroup/delete/delete.go +++ b/pkg/cmd/kafka/consumergroup/delete/delete.go @@ -4,17 +4,17 @@ import ( "context" "net/http" + "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/flagutil" + kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafkautil" + "github.com/AlecAivazis/survey/v2" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafka/cmdutil" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" ) type options struct { diff --git a/pkg/cmd/kafka/consumergroup/describe/describe.go b/pkg/cmd/kafka/consumergroup/describe/describe.go index 8ed7d0183..baeedfaa9 100644 --- a/pkg/cmd/kafka/consumergroup/describe/describe.go +++ b/pkg/cmd/kafka/consumergroup/describe/describe.go @@ -7,24 +7,20 @@ import ( "net/http" "sort" + kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafkautil" + "github.com/redhat-developer/app-services-cli/pkg/kafkautil/consumergrouputil" + + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/color" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" kafkainstanceclient "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal/client" - cgutil "github.com/redhat-developer/app-services-cli/pkg/kafka/consumergroup" - - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/internal/config" - - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/color" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafka/cmdutil" ) type options struct { @@ -65,7 +61,7 @@ func NewDescribeConsumerGroupCommand(f *factory.Factory) *cobra.Command { Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) (err error) { if opts.outputFormat != "" { - if err = flag.ValidateOutput(opts.outputFormat); err != nil { + if err = flagutil.ValidateOutput(opts.outputFormat); err != nil { return err } } @@ -193,9 +189,9 @@ func printConsumerGroupDetails(w io.Writer, consumerGroupData kafkainstanceclien fmt.Fprintln(w, "") consumers := consumerGroupData.GetConsumers() - activeMembersCount := cgutil.GetActiveConsumersCount(consumers) - partitionsWithLagCount := cgutil.GetPartitionsWithLag(consumers) - unassignedPartitions := cgutil.GetUnassignedPartitions(consumers) + activeMembersCount := consumergrouputil.GetActiveConsumersCount(consumers) + partitionsWithLagCount := consumergrouputil.GetPartitionsWithLag(consumers) + unassignedPartitions := consumergrouputil.GetUnassignedPartitions(consumers) fmt.Fprintln(w, color.Bold(localizer.MustLocalize("kafka.consumerGroup.describe.output.activeMembers")), activeMembersCount, "\t", color.Bold(localizer.MustLocalize("kafka.consumerGroup.describe.output.partitionsWithLag")), partitionsWithLagCount, "\t", color.Bold(localizer.MustLocalize("kafka.consumerGroup.describe.output.unassignedPartitions")), unassignedPartitions) fmt.Fprintln(w, "") diff --git a/pkg/cmd/kafka/consumergroup/list/list.go b/pkg/cmd/kafka/consumergroup/list/list.go index 9deeee11d..6b4a9320c 100644 --- a/pkg/cmd/kafka/consumergroup/list/list.go +++ b/pkg/cmd/kafka/consumergroup/list/list.go @@ -4,25 +4,23 @@ import ( "context" "net/http" + kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafkautil" + "github.com/redhat-developer/app-services-cli/pkg/kafkautil/consumergrouputil" + + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" kafkainstanceclient "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal/client" - "github.com/redhat-developer/app-services-cli/pkg/kafka/consumergroup" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - "github.com/redhat-developer/app-services-cli/pkg/cmdutil" - "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafka/cmdutil" - "github.com/spf13/cobra" "github.com/redhat-developer/app-services-cli/internal/build" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" ) type options struct { @@ -66,7 +64,7 @@ func NewListConsumerGroupCommand(f *factory.Factory) *cobra.Command { Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, _ []string) error { if opts.output != "" && !flagutil.IsValidInput(opts.output, flagutil.ValidOutputFormats...) { - return flag.InvalidValueError("output", opts.output, flagutil.ValidOutputFormats...) + return flagutil.InvalidValueError("output", opts.output, flagutil.ValidOutputFormats...) } if opts.page < 1 { @@ -184,8 +182,8 @@ func mapConsumerGroupResultsToTableFormat(consumerGroups []kafkainstanceclient.C consumers := t.GetConsumers() row := consumerGroupRow{ ConsumerGroupID: t.GetGroupId(), - ActiveMembers: consumergroup.GetActiveConsumersCount(consumers), - PartitionsWithLag: consumergroup.GetPartitionsWithLag(consumers), + ActiveMembers: consumergrouputil.GetActiveConsumersCount(consumers), + PartitionsWithLag: consumergrouputil.GetPartitionsWithLag(consumers), } rows[i] = row } diff --git a/pkg/cmd/kafka/consumergroup/resetoffset/reset_offset.go b/pkg/cmd/kafka/consumergroup/resetoffset/reset_offset.go index 895f55030..d41abf71d 100644 --- a/pkg/cmd/kafka/consumergroup/resetoffset/reset_offset.go +++ b/pkg/cmd/kafka/consumergroup/resetoffset/reset_offset.go @@ -4,21 +4,20 @@ import ( "context" "net/http" - "github.com/redhat-developer/app-services-cli/pkg/icon" + kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafkautil" + "github.com/redhat-developer/app-services-cli/pkg/kafkautil/consumergrouputil" "github.com/AlecAivazis/survey/v2" - kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafka/cmdutil" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" kafkainstanceclient "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal/client" "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/kafka/consumergroup" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" ) type options struct { @@ -38,7 +37,7 @@ type options struct { Context context.Context } -var validator consumergroup.Validator +var validator consumergrouputil.Validator // NewResetOffsetConsumerGroupCommand gets a new command for resetting offset for a consumer group. func NewResetOffsetConsumerGroupCommand(f *factory.Factory) *cobra.Command { @@ -58,7 +57,7 @@ func NewResetOffsetConsumerGroupCommand(f *factory.Factory) *cobra.Command { Example: opts.localizer.MustLocalize("kafka.consumerGroup.resetOffset.cmd.example"), Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) (err error) { - validator = consumergroup.Validator{ + validator = consumergrouputil.Validator{ Localizer: opts.localizer, } @@ -68,7 +67,7 @@ func NewResetOffsetConsumerGroupCommand(f *factory.Factory) *cobra.Command { } } - if opts.value == "" && (opts.offset == consumergroup.OffsetAbsolute || opts.offset == consumergroup.OffsetTimestamp) { + if opts.value == "" && (opts.offset == consumergrouputil.OffsetAbsolute || opts.offset == consumergrouputil.OffsetTimestamp) { return opts.localizer.MustLocalizeError("kafka.consumerGroup.resetOffset.error.valueRequired", localize.NewEntry("Offset", opts.offset)) } @@ -116,7 +115,7 @@ func NewResetOffsetConsumerGroupCommand(f *factory.Factory) *cobra.Command { }) flagutil.EnableOutputFlagCompletion(cmd) - flagutil.EnableStaticFlagCompletion(cmd, "offset", consumergroup.ValidOffsets) + flagutil.EnableStaticFlagCompletion(cmd, "offset", consumergrouputil.ValidOffsets) return cmd } @@ -142,7 +141,7 @@ func runCmd(opts *options) error { offsetResetParams.Value = &opts.value } - if opts.offset == consumergroup.OffsetAbsolute || opts.offset == consumergroup.OffsetTimestamp { + if opts.offset == consumergrouputil.OffsetAbsolute || opts.offset == consumergrouputil.OffsetTimestamp { if err = validator.ValidateOffsetValue(opts.offset, opts.value); err != nil { return err } diff --git a/pkg/cmd/kafka/create/create.go b/pkg/cmd/kafka/create/create.go index 4e807e781..5ab94751f 100644 --- a/pkg/cmd/kafka/create/create.go +++ b/pkg/cmd/kafka/create/create.go @@ -7,35 +7,28 @@ import ( "os/signal" "time" - "github.com/redhat-developer/app-services-cli/pkg/api/kas" - "github.com/redhat-developer/app-services-cli/pkg/icon" - "github.com/redhat-developer/app-services-cli/pkg/ioutil/spinner" - + kafkaFlagutil "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/flagutil" + + "github.com/redhat-developer/app-services-cli/pkg/accountmgmtutil" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/color" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/spinner" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/core/status" + pkgKafka "github.com/redhat-developer/app-services-cli/pkg/kafkautil" kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" - "github.com/redhat-developer/app-services-cli/pkg/color" - "github.com/redhat-developer/app-services-cli/pkg/dump" - kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafka/cmdutil" - "github.com/redhat-developer/app-services-cli/pkg/localize" - - "github.com/redhat-developer/app-services-cli/pkg/ams" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - cmdFlagUtil "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - svcstatus "github.com/redhat-developer/app-services-cli/pkg/service/status" - "github.com/AlecAivazis/survey/v2" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - pkgKafka "github.com/redhat-developer/app-services-cli/pkg/kafka" - "github.com/redhat-developer/app-services-cli/pkg/logging" - "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/cmdutil" ) type options struct { @@ -105,31 +98,29 @@ func NewCreateCommand(f *factory.Factory) *cobra.Command { opts.interactive = true } - validOutputFormats := cmdFlagUtil.ValidOutputFormats - if opts.outputFormat != "" && !cmdFlagUtil.IsValidInput(opts.outputFormat, validOutputFormats...) { - return flag.InvalidValueError("output", opts.outputFormat, validOutputFormats...) + validOutputFormats := flagutil.ValidOutputFormats + if opts.outputFormat != "" && !flagutil.IsValidInput(opts.outputFormat, validOutputFormats...) { + return flagutil.InvalidValueError("output", opts.outputFormat, validOutputFormats...) } return runCreate(opts) }, } - flags := flagutil.NewFlagSet(cmd, opts.localizer) + flags := kafkaFlagutil.NewFlagSet(cmd, opts.localizer) flags.StringVar(&opts.name, "name", "", opts.localizer.MustLocalize("kafka.create.flag.name.description")) - flags.StringVar(&opts.provider, flagutil.FlagProvider, "", opts.localizer.MustLocalize("kafka.create.flag.cloudProvider.description")) - flags.StringVar(&opts.region, flagutil.FlagRegion, "", opts.localizer.MustLocalize("kafka.create.flag.cloudRegion.description")) + flags.StringVar(&opts.provider, kafkaFlagutil.FlagProvider, "", opts.localizer.MustLocalize("kafka.create.flag.cloudProvider.description")) + flags.StringVar(&opts.region, kafkaFlagutil.FlagRegion, "", opts.localizer.MustLocalize("kafka.create.flag.cloudRegion.description")) flags.AddOutput(&opts.outputFormat) flags.BoolVar(&opts.autoUse, "use", true, opts.localizer.MustLocalize("kafka.create.flag.autoUse.description")) flags.BoolVarP(&opts.wait, "wait", "w", false, opts.localizer.MustLocalize("kafka.create.flag.wait.description")) flags.AddBypassTermsCheck(&opts.bypassTermsCheck) - _ = cmd.RegisterFlagCompletionFunc(flagutil.FlagProvider, func(cmd *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective) { - return kafkacmdutil.GetCloudProviderCompletionValues(f) + _ = cmd.RegisterFlagCompletionFunc(kafkaFlagutil.FlagProvider, func(cmd *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective) { + return pkgKafka.GetCloudProviderCompletionValues(f) }) - cmdFlagUtil.EnableOutputFlagCompletion(cmd) - return cmd } @@ -149,10 +140,10 @@ func runCreate(opts *options) error { opts.Logger.Debug("Checking if terms and conditions have been accepted") // the user must have accepted the terms and conditions from the provider // before they can create a kafka instance - termsSpec := ams.GetRemoteTermsSpec(&opts.Context, opts.Logger) + termsSpec := accountmgmtutil.GetRemoteTermsSpec(&opts.Context, opts.Logger) var termsAccepted bool var termsURL string - termsAccepted, termsURL, err = ams.CheckTermsAccepted(opts.Context, termsSpec.Kafka, conn) + termsAccepted, termsURL, err = accountmgmtutil.CheckTermsAccepted(opts.Context, termsSpec.Kafka, conn) if err != nil { return err } @@ -189,7 +180,7 @@ func runCreate(opts *options) error { api := conn.API() - a := api.Kafka().CreateKafka(opts.Context) + a := api.KafkaMgmt().CreateKafka(opts.Context) a = a.KafkaRequestPayload(*payload) a = a.Async(true) response, httpRes, err := a.Execute() @@ -197,11 +188,11 @@ func runCreate(opts *options) error { defer httpRes.Body.Close() } - if apiErr := kas.GetAPIError(err); apiErr != nil { + if apiErr := pkgKafka.GetAPIError(err); apiErr != nil { switch apiErr.GetCode() { - case kas.ErrorCode24: + case pkgKafka.ErrorCode24: return opts.localizer.MustLocalizeError("kafka.create.error.oneinstance") - case kas.ErrorCode36: + case pkgKafka.ErrorCode36: return opts.localizer.MustLocalizeError("kafka.create.error.conflictError", localize.NewEntry("Name", payload.Name)) } } @@ -244,10 +235,10 @@ func runCreate(opts *options) error { } }() - for svcstatus.IsCreating(response.GetStatus()) { + for status.IsInstanceCreating(response.GetStatus()) { time.Sleep(cmdutil.DefaultPollTime) - response, httpRes, err = api.Kafka().GetKafkaById(opts.Context, response.GetId()).Execute() + response, httpRes, err = api.KafkaMgmt().GetKafkaById(opts.Context, response.GetId()).Execute() if err != nil { return err } @@ -312,7 +303,7 @@ func promptKafkaPayload(opts *options) (payload *kafkamgmtclient.KafkaRequestPay } // fetch all cloud available providers - cloudProviderResponse, httpRes, err := api.Kafka().GetCloudProviders(opts.Context).Execute() + cloudProviderResponse, httpRes, err := api.KafkaMgmt().GetCloudProviders(opts.Context).Execute() if httpRes != nil { defer httpRes.Body.Close() } @@ -322,7 +313,7 @@ func promptKafkaPayload(opts *options) (payload *kafkamgmtclient.KafkaRequestPay } cloudProviders := cloudProviderResponse.GetItems() - cloudProviderNames := kafkacmdutil.GetEnabledCloudProviderNames(cloudProviders) + cloudProviderNames := pkgKafka.GetEnabledCloudProviderNames(cloudProviders) cloudProviderPrompt := &survey.Select{ Message: opts.localizer.MustLocalize("kafka.create.input.cloudProvider.message"), @@ -335,16 +326,16 @@ func promptKafkaPayload(opts *options) (payload *kafkamgmtclient.KafkaRequestPay } // get the selected provider type from the name selected - selectedCloudProvider := kafkacmdutil.FindCloudProviderByName(cloudProviders, answers.CloudProvider) + selectedCloudProvider := pkgKafka.FindCloudProviderByName(cloudProviders, answers.CloudProvider) // nolint - cloudRegionResponse, _, err := api.Kafka().GetCloudProviderRegions(opts.Context, selectedCloudProvider.GetId()).Execute() + cloudRegionResponse, _, err := api.KafkaMgmt().GetCloudProviderRegions(opts.Context, selectedCloudProvider.GetId()).Execute() if err != nil { return nil, err } regions := cloudRegionResponse.GetItems() - regionIDs := kafkacmdutil.GetEnabledCloudRegionIDs(regions) + regionIDs := pkgKafka.GetEnabledCloudRegionIDs(regions) regionPrompt := &survey.Select{ Message: opts.localizer.MustLocalize("kafka.create.input.cloudRegion.message"), diff --git a/pkg/cmd/kafka/delete/delete.go b/pkg/cmd/kafka/delete/delete.go index d3f13066e..76a515fb7 100644 --- a/pkg/cmd/kafka/delete/delete.go +++ b/pkg/cmd/kafka/delete/delete.go @@ -4,24 +4,19 @@ import ( "context" "fmt" - "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafka/cmdutil" - "github.com/redhat-developer/app-services-cli/pkg/localize" - - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/kafka" - + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/kafkautil" kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" - "github.com/redhat-developer/app-services-cli/pkg/logging" - "github.com/AlecAivazis/survey/v2" "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" ) type options struct { @@ -56,7 +51,7 @@ func NewDeleteCommand(f *factory.Factory) *cobra.Command { Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { if !opts.IO.CanPrompt() && !opts.skipConfirm { - return flag.RequiredWhenNonInteractiveError("yes") + return flagutil.RequiredWhenNonInteractiveError("yes") } if opts.name != "" && opts.id != "" { @@ -88,7 +83,7 @@ func NewDeleteCommand(f *factory.Factory) *cobra.Command { flags.StringVar(&opts.id, "id", "", opts.localizer.MustLocalize("kafka.delete.flag.id")) flags.StringVar(&opts.name, "name", "", opts.localizer.MustLocalize("kafka.delete.flag.name")) - if err := kafkacmdutil.RegisterNameFlagCompletionFunc(cmd, f); err != nil { + if err := kafkautil.RegisterNameFlagCompletionFunc(cmd, f); err != nil { opts.Logger.Debug(opts.localizer.MustLocalize("kafka.common.error.load.completions.name.flag"), err) } @@ -110,12 +105,12 @@ func runDelete(opts *options) error { var response *kafkamgmtclient.KafkaRequest if opts.name != "" { - response, _, err = kafka.GetKafkaByName(opts.Context, api.Kafka(), opts.name) + response, _, err = kafkautil.GetKafkaByName(opts.Context, api.KafkaMgmt(), opts.name) if err != nil { return err } } else { - response, _, err = kafka.GetKafkaByID(opts.Context, api.Kafka(), opts.id) + response, _, err = kafkautil.GetKafkaByID(opts.Context, api.KafkaMgmt(), opts.id) if err != nil { return err } @@ -142,7 +137,7 @@ func runDelete(opts *options) error { // delete the Kafka opts.Logger.Debug(opts.localizer.MustLocalize("kafka.delete.log.debug.deletingKafka"), fmt.Sprintf("\"%s\"", kafkaName)) - a := api.Kafka().DeleteKafkaById(opts.Context, response.GetId()) + a := api.KafkaMgmt().DeleteKafkaById(opts.Context, response.GetId()) a = a.Async(true) _, _, err = a.Execute() diff --git a/pkg/cmd/kafka/describe/describe.go b/pkg/cmd/kafka/describe/describe.go index ed0fc79e4..148058786 100644 --- a/pkg/cmd/kafka/describe/describe.go +++ b/pkg/cmd/kafka/describe/describe.go @@ -5,22 +5,17 @@ import ( "fmt" "net/http" - "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafka/cmdutil" - "github.com/redhat-developer/app-services-cli/pkg/localize" - - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/kafkautil" kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/kafka" - "github.com/redhat-developer/app-services-cli/pkg/logging" ) type options struct { @@ -58,7 +53,7 @@ func NewDescribeCommand(f *factory.Factory) *cobra.Command { RunE: func(cmd *cobra.Command, args []string) error { validOutputFormats := flagutil.ValidOutputFormats if opts.outputFormat != "" && !flagutil.IsValidInput(opts.outputFormat, validOutputFormats...) { - return flag.InvalidValueError("output", opts.outputFormat, validOutputFormats...) + return flagutil.InvalidValueError("output", opts.outputFormat, validOutputFormats...) } if opts.name != "" && opts.id != "" { @@ -93,7 +88,7 @@ func NewDescribeCommand(f *factory.Factory) *cobra.Command { flags.StringVar(&opts.name, "name", "", opts.localizer.MustLocalize("kafka.describe.flag.name")) flags.BoolVar(&opts.bootstrapServer, "bootstrap-server", false, opts.localizer.MustLocalize("kafka.describe.flag.bootstrapserver")) - if err := kafkacmdutil.RegisterNameFlagCompletionFunc(cmd, f); err != nil { + if err := kafkautil.RegisterNameFlagCompletionFunc(cmd, f); err != nil { opts.Logger.Debug(opts.localizer.MustLocalize("kafka.common.error.load.completions.name.flag"), err) } flagutil.EnableOutputFlagCompletion(cmd) @@ -112,7 +107,7 @@ func runDescribe(opts *options) error { var kafkaInstance *kafkamgmtclient.KafkaRequest var httpRes *http.Response if opts.name != "" { - kafkaInstance, httpRes, err = kafka.GetKafkaByName(opts.Context, api.Kafka(), opts.name) + kafkaInstance, httpRes, err = kafkautil.GetKafkaByName(opts.Context, api.KafkaMgmt(), opts.name) if httpRes != nil { defer httpRes.Body.Close() } @@ -120,7 +115,7 @@ func runDescribe(opts *options) error { return err } } else { - kafkaInstance, httpRes, err = kafka.GetKafkaByID(opts.Context, api.Kafka(), opts.id) + kafkaInstance, httpRes, err = kafkautil.GetKafkaByID(opts.Context, api.KafkaMgmt(), opts.id) if httpRes != nil { defer httpRes.Body.Close() } diff --git a/pkg/cmd/kafka/flagutil/flagutil.go b/pkg/cmd/kafka/flagutil/flagutil.go index 3f47da31a..7eade338b 100644 --- a/pkg/cmd/kafka/flagutil/flagutil.go +++ b/pkg/cmd/kafka/flagutil/flagutil.go @@ -1,8 +1,8 @@ package flagutil import ( - "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" "github.com/spf13/cobra" "github.com/spf13/pflag" ) diff --git a/pkg/cmd/kafka/kafka.go b/pkg/cmd/kafka/kafka.go index 539154a44..b9d9084b0 100644 --- a/pkg/cmd/kafka/kafka.go +++ b/pkg/cmd/kafka/kafka.go @@ -3,18 +3,17 @@ package kafka import ( - "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/consumergroup" - "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/topic" - "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/acl" + "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/consumergroup" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/create" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/delete" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/describe" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/list" + "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/topic" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/update" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/use" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/spf13/cobra" ) func NewKafkaCommand(f *factory.Factory) *cobra.Command { diff --git a/pkg/cmd/kafka/list/list.go b/pkg/cmd/kafka/list/list.go index 6680f2949..b727ae53d 100644 --- a/pkg/cmd/kafka/list/list.go +++ b/pkg/cmd/kafka/list/list.go @@ -5,26 +5,25 @@ import ( "fmt" "strconv" - kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" - - cmdFlagUtil "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/icon" + kafkaFlagutil "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/flagutil" + + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/kafkautil" - "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/cmdutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/kafka" - "github.com/redhat-developer/app-services-cli/pkg/localize" + kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" "github.com/spf13/cobra" "github.com/redhat-developer/app-services-cli/internal/build" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - "github.com/redhat-developer/app-services-cli/pkg/logging" ) // row is the details of a Kafka instance needed to print to a table @@ -72,11 +71,11 @@ func NewListCommand(f *factory.Factory) *cobra.Command { Example: opts.localizer.MustLocalize("kafka.list.cmd.example"), Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { - if opts.outputFormat != "" && !cmdFlagUtil.IsValidInput(opts.outputFormat, cmdFlagUtil.ValidOutputFormats...) { - return flag.InvalidValueError("output", opts.outputFormat, cmdFlagUtil.ValidOutputFormats...) + if opts.outputFormat != "" && !flagutil.IsValidInput(opts.outputFormat, flagutil.ValidOutputFormats...) { + return flagutil.InvalidValueError("output", opts.outputFormat, flagutil.ValidOutputFormats...) } - validator := &kafka.Validator{ + validator := &kafkautil.Validator{ Localizer: opts.localizer, } @@ -88,7 +87,7 @@ func NewListCommand(f *factory.Factory) *cobra.Command { }, } - flags := flagutil.NewFlagSet(cmd, opts.localizer) + flags := kafkaFlagutil.NewFlagSet(cmd, opts.localizer) flags.AddOutput(&opts.outputFormat) flags.IntVar(&opts.page, "page", int(cmdutil.ConvertPageValueToInt32(build.DefaultPageNumber)), opts.localizer.MustLocalize("kafka.list.flag.page")) @@ -106,7 +105,7 @@ func runList(opts *options) error { api := conn.API() - a := api.Kafka().GetKafkas(opts.Context) + a := api.KafkaMgmt().GetKafkas(opts.Context) a = a.Page(strconv.Itoa(opts.page)) a = a.Size(strconv.Itoa(opts.limit)) diff --git a/pkg/cmd/kafka/topic/create/create.go b/pkg/cmd/kafka/topic/create/create.go index 81d19093a..5d39f67bd 100644 --- a/pkg/cmd/kafka/topic/create/create.go +++ b/pkg/cmd/kafka/topic/create/create.go @@ -5,23 +5,20 @@ import ( "net/http" "strconv" + "github.com/redhat-developer/app-services-cli/pkg/kafkautil/topicutil" + + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" kafkainstanceclient "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal/client" "github.com/AlecAivazis/survey/v2" - "github.com/redhat-developer/app-services-cli/pkg/connection" - topicutil "github.com/redhat-developer/app-services-cli/pkg/kafka/topic" - "github.com/redhat-developer/app-services-cli/pkg/localize" - - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/logging" - "github.com/spf13/cobra" ) @@ -74,7 +71,7 @@ func NewCreateTopicCommand(f *factory.Factory) *cobra.Command { } if opts.outputFormat != "" { - if err = flag.ValidateOutput(opts.outputFormat); err != nil { + if err = flagutil.ValidateOutput(opts.outputFormat); err != nil { return err } } @@ -82,7 +79,7 @@ func NewCreateTopicCommand(f *factory.Factory) *cobra.Command { // check that a valid --cleanup-policy flag value is used validPolicy := flagutil.IsValidInput(opts.cleanupPolicy, topicutil.ValidCleanupPolicies...) if !validPolicy { - return flag.InvalidValueError("cleanup-policy", opts.cleanupPolicy, topicutil.ValidCleanupPolicies...) + return flagutil.InvalidValueError("cleanup-policy", opts.cleanupPolicy, topicutil.ValidCleanupPolicies...) } if !opts.interactive { diff --git a/pkg/cmd/kafka/topic/delete/delete.go b/pkg/cmd/kafka/topic/delete/delete.go index 353b21dd6..0aab8095a 100644 --- a/pkg/cmd/kafka/topic/delete/delete.go +++ b/pkg/cmd/kafka/topic/delete/delete.go @@ -4,19 +4,16 @@ import ( "context" "net/http" - "github.com/AlecAivazis/survey/v2" - "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafka/cmdutil" - "github.com/redhat-developer/app-services-cli/pkg/localize" - - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/logging" + kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafkautil" + "github.com/AlecAivazis/survey/v2" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" "github.com/spf13/cobra" ) diff --git a/pkg/cmd/kafka/topic/describe/describe.go b/pkg/cmd/kafka/topic/describe/describe.go index 3bd99db25..651df9b29 100644 --- a/pkg/cmd/kafka/topic/describe/describe.go +++ b/pkg/cmd/kafka/topic/describe/describe.go @@ -4,20 +4,16 @@ import ( "context" "net/http" - "github.com/redhat-developer/app-services-cli/pkg/connection" - kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafka/cmdutil" - "github.com/redhat-developer/app-services-cli/pkg/localize" - - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/logging" - - "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - + kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafkautil" + + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" "github.com/spf13/cobra" ) @@ -53,7 +49,7 @@ func NewDescribeTopicCommand(f *factory.Factory) *cobra.Command { Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) (err error) { if opts.outputFormat != "" { - if err = flag.ValidateOutput(opts.outputFormat); err != nil { + if err = flagutil.ValidateOutput(opts.outputFormat); err != nil { return err } } diff --git a/pkg/cmd/kafka/topic/list/list.go b/pkg/cmd/kafka/topic/list/list.go index 5e8058547..926055642 100644 --- a/pkg/cmd/kafka/topic/list/list.go +++ b/pkg/cmd/kafka/topic/list/list.go @@ -4,25 +4,22 @@ import ( "context" "net/http" + "github.com/redhat-developer/app-services-cli/pkg/kafkautil/topicutil" + + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" kafkainstanceclient "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal/client" - "github.com/redhat-developer/app-services-cli/pkg/cmdutil" - topicutil "github.com/redhat-developer/app-services-cli/pkg/kafka/topic" - "github.com/redhat-developer/app-services-cli/pkg/localize" - - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - "github.com/redhat-developer/app-services-cli/pkg/connection" - - "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/spf13/cobra" "github.com/redhat-developer/app-services-cli/internal/build" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/logging" ) type options struct { @@ -66,7 +63,7 @@ func NewListTopicCommand(f *factory.Factory) *cobra.Command { Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, _ []string) error { if opts.output != "" { - if err := flag.ValidateOutput(opts.output); err != nil { + if err := flagutil.ValidateOutput(opts.output); err != nil { return err } } diff --git a/pkg/cmd/kafka/topic/topic.go b/pkg/cmd/kafka/topic/topic.go index e48a66727..404470071 100644 --- a/pkg/cmd/kafka/topic/topic.go +++ b/pkg/cmd/kafka/topic/topic.go @@ -1,14 +1,13 @@ package topic import ( - "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/topic/create" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/topic/delete" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/topic/describe" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/topic/list" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/topic/update" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/spf13/cobra" ) const ( diff --git a/pkg/cmd/kafka/topic/update/update.go b/pkg/cmd/kafka/topic/update/update.go index d875a9731..208c8d41c 100644 --- a/pkg/cmd/kafka/topic/update/update.go +++ b/pkg/cmd/kafka/topic/update/update.go @@ -5,24 +5,19 @@ import ( "net/http" "strings" - "github.com/AlecAivazis/survey/v2" - - "github.com/redhat-developer/app-services-cli/pkg/connection" - kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafka/cmdutil" - "github.com/redhat-developer/app-services-cli/pkg/localize" - - "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - topicutil "github.com/redhat-developer/app-services-cli/pkg/kafka/topic" - - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" + kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafkautil" + "github.com/redhat-developer/app-services-cli/pkg/kafkautil/topicutil" + "github.com/AlecAivazis/survey/v2" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" kafkainstanceclient "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal/client" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/logging" - "github.com/spf13/cobra" ) @@ -92,7 +87,7 @@ func NewUpdateTopicCommand(f *factory.Factory) *cobra.Command { if opts.cleanupPolicy != "" { validPolicy := flagutil.IsValidInput(opts.cleanupPolicy, topicutil.ValidCleanupPolicies...) if !validPolicy { - return flag.InvalidValueError("cleanup-policy", opts.cleanupPolicy, topicutil.ValidCleanupPolicies...) + return flagutil.InvalidValueError("cleanup-policy", opts.cleanupPolicy, topicutil.ValidCleanupPolicies...) } } diff --git a/pkg/cmd/kafka/update/update.go b/pkg/cmd/kafka/update/update.go index 5b5f891af..fcc873ace 100644 --- a/pkg/cmd/kafka/update/update.go +++ b/pkg/cmd/kafka/update/update.go @@ -7,28 +7,26 @@ import ( "strconv" "strings" + "github.com/redhat-developer/app-services-cli/pkg/auth/token" + "github.com/AlecAivazis/survey/v2" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/color" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/spinner" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/kafkautil" kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" "github.com/spf13/cobra" "github.com/redhat-developer/app-services-cli/internal/build" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/api/kas" - "github.com/redhat-developer/app-services-cli/pkg/api/rbac" - "github.com/redhat-developer/app-services-cli/pkg/api/rbac/rbacutil" - "github.com/redhat-developer/app-services-cli/pkg/auth/token" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/color" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/icon" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/ioutil/spinner" - "github.com/redhat-developer/app-services-cli/pkg/kafka" - kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafka/cmdutil" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" + "github.com/redhat-developer/app-services-cli/pkg/apis/rbac" + "github.com/redhat-developer/app-services-cli/pkg/apis/rbac/rbacutil" ) type options struct { @@ -87,7 +85,7 @@ func NewUpdateCommand(f *factory.Factory) *cobra.Command { missingFlags = append(missingFlags, "yes") } if len(missingFlags) > 0 { - return flag.RequiredWhenNonInteractiveError(missingFlags...) + return flagutil.RequiredWhenNonInteractiveError(missingFlags...) } } if opts.owner == "" && opts.reauth == "" { @@ -120,7 +118,7 @@ func NewUpdateCommand(f *factory.Factory) *cobra.Command { flags.AddYes(&opts.skipConfirm) flags.StringVar(&opts.name, "name", "", opts.localizer.MustLocalize("kafka.update.flag.name")) - _ = kafkacmdutil.RegisterNameFlagCompletionFunc(cmd, f) + _ = kafkautil.RegisterNameFlagCompletionFunc(cmd, f) _ = flagutil.RegisterUserCompletionFunc(cmd, "owner", f) return cmd @@ -134,7 +132,7 @@ func run(opts *options) error { api := conn.API() - kafkaInstance, err := getCurrentKafkaInstance(opts, api.Kafka()) + kafkaInstance, err := getCurrentKafkaInstance(opts, api.KafkaMgmt()) if err != nil { return err } @@ -182,7 +180,7 @@ func run(opts *options) error { s.SetLocalizedSuffix("kafka.update.log.info.updating", localize.NewEntry("Name", kafkaInstance.GetName())) s.Start() - response, httpRes, err := api.Kafka(). + response, httpRes, err := api.KafkaMgmt(). UpdateKafkaById(opts.Context, kafkaInstance.GetId()). KafkaUpdateRequest(*updateObj). Execute() @@ -194,7 +192,7 @@ func run(opts *options) error { s.Stop() if err != nil { - if apiError := kas.GetAPIError(err); apiError != nil { + if apiError := kafkautil.GetAPIError(err); apiError != nil { return opts.localizer.MustLocalizeError("kafka.update.log.info.updateFailed", localize.NewEntry("Reason", apiError.GetReason())) } return err @@ -270,7 +268,7 @@ func selectOwnerInteractive(ctx context.Context, opts *options) (string, error) s.Start() //nolint:govet - users, err := rbacutil.FetchAllUsers(ctx, conn.API().RBAC.PrincipalAPI) + users, err := rbacutil.FetchAllUsers(ctx, conn.API().RBAC().PrincipalAPI) s.Stop() opts.logger.Info() @@ -323,13 +321,13 @@ func generateUpdateSummary(new reflect.Value, current reflect.Value) string { func getCurrentKafkaInstance(opts *options, api kafkamgmtclient.DefaultApi) (kafkaInstance *kafkamgmtclient.KafkaRequest, err error) { if opts.name != "" { - kafkaInstance, _, err = kafka.GetKafkaByName(opts.Context, api, opts.name) + kafkaInstance, _, err = kafkautil.GetKafkaByName(opts.Context, api, opts.name) if err != nil { return nil, err } opts.id = kafkaInstance.GetName() } else { - kafkaInstance, _, err = kafka.GetKafkaByID(opts.Context, api, opts.id) + kafkaInstance, _, err = kafkautil.GetKafkaByID(opts.Context, api, opts.id) if err != nil { return nil, err } diff --git a/pkg/cmd/kafka/use/use.go b/pkg/cmd/kafka/use/use.go index 73b07e21b..334619c87 100644 --- a/pkg/cmd/kafka/use/use.go +++ b/pkg/cmd/kafka/use/use.go @@ -4,22 +4,19 @@ import ( "context" "fmt" - "github.com/redhat-developer/app-services-cli/pkg/icon" - "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafka/cmdutil" - "github.com/redhat-developer/app-services-cli/pkg/localize" - kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" - "github.com/redhat-developer/app-services-cli/pkg/kafka" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/kafkautil" + kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/logging" ) type options struct { @@ -72,7 +69,7 @@ func NewUseCommand(f *factory.Factory) *cobra.Command { flags.StringVar(&opts.id, "id", "", opts.localizer.MustLocalize("kafka.use.flag.id")) flags.StringVar(&opts.name, "name", "", opts.localizer.MustLocalize("kafka.use.flag.name")) - if err := kafkacmdutil.RegisterNameFlagCompletionFunc(cmd, f); err != nil { + if err := kafkautil.RegisterNameFlagCompletionFunc(cmd, f); err != nil { opts.Logger.Debug(opts.localizer.MustLocalize("kafka.common.error.load.completions.name.flag"), err) } @@ -106,12 +103,12 @@ func runUse(opts *options) error { var res *kafkamgmtclient.KafkaRequest if opts.name != "" { - res, _, err = kafka.GetKafkaByName(opts.Context, api.Kafka(), opts.name) + res, _, err = kafkautil.GetKafkaByName(opts.Context, api.KafkaMgmt(), opts.name) if err != nil { return err } } else { - res, _, err = kafka.GetKafkaByID(opts.Context, api.Kafka(), opts.id) + res, _, err = kafkautil.GetKafkaByID(opts.Context, api.KafkaMgmt(), opts.id) if err != nil { return err } @@ -142,7 +139,7 @@ func runInteractivePrompt(opts *options) error { opts.Logger.Debug(opts.localizer.MustLocalize("common.log.debug.startingInteractivePrompt")) - selectedKafka, err := kafka.InteractiveSelect(opts.Context, conn, opts.Logger, opts.localizer) + selectedKafka, err := kafkautil.InteractiveSelect(opts.Context, conn, opts.Logger, opts.localizer) if err != nil { return err } diff --git a/pkg/cmd/login/login.go b/pkg/cmd/login/login.go index 598b4e325..da16143f8 100644 --- a/pkg/cmd/login/login.go +++ b/pkg/cmd/login/login.go @@ -4,26 +4,25 @@ import ( "context" "crypto/tls" "errors" + "github.com/redhat-developer/app-services-cli/pkg/auth/login" + "github.com/redhat-developer/app-services-cli/pkg/auth/token" + "github.com/redhat-developer/app-services-cli/pkg/cmd/debug" "net/http" "net/url" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/connection/kcconnection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/spinner" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/internal/build" - "github.com/redhat-developer/app-services-cli/pkg/icon" "golang.org/x/oauth2" - "github.com/redhat-developer/app-services-cli/pkg/auth/login" - "github.com/redhat-developer/app-services-cli/pkg/auth/token" - "github.com/redhat-developer/app-services-cli/pkg/localize" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/debug" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/logging" - - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/ioutil/spinner" - "github.com/spf13/cobra" ) @@ -108,7 +107,7 @@ func NewLoginCmd(f *factory.Factory) *cobra.Command { cmd.Flags().StringVar(&opts.authURL, "auth-url", build.ProductionAuthURL, opts.localizer.MustLocalize("login.flag.authUrl")) cmd.Flags().StringVar(&opts.masAuthURL, "mas-auth-url", build.ProductionMasAuthURL, opts.localizer.MustLocalize("login.flag.masAuthUrl")) cmd.Flags().BoolVar(&opts.printURL, "print-sso-url", false, opts.localizer.MustLocalize("login.flag.printSsoUrl")) - cmd.Flags().StringArrayVar(&opts.scopes, "scope", connection.DefaultScopes, opts.localizer.MustLocalize("login.flag.scope")) + cmd.Flags().StringArrayVar(&opts.scopes, "scope", kcconnection.DefaultScopes, opts.localizer.MustLocalize("login.flag.scope")) cmd.Flags().StringVarP(&opts.offlineToken, "token", "t", "", opts.localizer.MustLocalize("login.flag.token", localize.NewEntry("OfflineTokenURL", build.OfflineTokenURL))) return cmd diff --git a/pkg/cmd/logout/logout.go b/pkg/cmd/logout/logout.go index 6702f1f30..8f34664c0 100644 --- a/pkg/cmd/logout/logout.go +++ b/pkg/cmd/logout/logout.go @@ -3,15 +3,13 @@ package logout import ( "context" "fmt" - "github.com/redhat-developer/app-services-cli/pkg/icon" - + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" ) type options struct { diff --git a/pkg/cmd/logout/logout_test.go b/pkg/cmd/logout/logout_test.go index a5cd29510..1c2599343 100644 --- a/pkg/cmd/logout/logout_test.go +++ b/pkg/cmd/logout/logout_test.go @@ -2,26 +2,24 @@ package logout import ( "bytes" + "github.com/redhat-developer/app-services-cli/pkg/auth/token" "testing" - "github.com/redhat-developer/app-services-cli/pkg/localize/goi18n" - "github.com/redhat-developer/app-services-cli/pkg/logging" - - "github.com/redhat-developer/app-services-cli/pkg/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/connection/kcconnection" + "github.com/redhat-developer/app-services-cli/pkg/core/localize/goi18n" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" "github.com/redhat-developer/app-services-cli/internal/mockutil" - - "github.com/redhat-developer/app-services-cli/internal/config" - - "github.com/redhat-developer/app-services-cli/pkg/auth/token" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" ) func TestNewLogoutCommand(t *testing.T) { localizer, _ := goi18n.New(nil) type args struct { cfg *config.Config - connection *connection.KeycloakConnection + connection *kcconnection.Connection } tests := []struct { name string @@ -38,7 +36,7 @@ func TestNewLogoutCommand(t *testing.T) { AccessToken: "valid", RefreshToken: "valid", }, - connection: &connection.KeycloakConnection{ + connection: &kcconnection.Connection{ Token: &token.Token{ AccessToken: "valid", RefreshToken: "valid", @@ -55,7 +53,7 @@ func TestNewLogoutCommand(t *testing.T) { AccessToken: "expired", RefreshToken: "expired", }, - connection: &connection.KeycloakConnection{ + connection: &kcconnection.Connection{ Token: &token.Token{ AccessToken: "expired", RefreshToken: "expired", diff --git a/pkg/cmd/registry/artifact/artifacts.go b/pkg/cmd/registry/artifact/artifacts.go index 0a25c48b7..55d6f04e2 100644 --- a/pkg/cmd/registry/artifact/artifacts.go +++ b/pkg/cmd/registry/artifact/artifacts.go @@ -1,7 +1,6 @@ package artifact import ( - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/crud/create" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/crud/delete" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/crud/get" @@ -9,9 +8,10 @@ import ( "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/crud/update" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/download" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/metadata" - "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/migrate" + migrate "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/migrate" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/state" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/versions" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" "github.com/spf13/cobra" ) diff --git a/pkg/cmd/registry/artifact/crud/create/create.go b/pkg/cmd/registry/artifact/crud/create/create.go index 190cc4da9..985e4e05a 100644 --- a/pkg/cmd/registry/artifact/crud/create/create.go +++ b/pkg/cmd/registry/artifact/crud/create/create.go @@ -2,30 +2,23 @@ package create import ( "context" - "os" - registryinstanceclient "github.com/redhat-developer/app-services-sdk-go/registryinstance/apiv1internal/client" - - "github.com/redhat-developer/app-services-cli/pkg/color" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry/registryinstanceerror" - - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/util" - flagutil "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - - "github.com/redhat-developer/app-services-cli/pkg/logging" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/color" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" + registryinstanceclient "github.com/redhat-developer/app-services-sdk-go/registryinstance/apiv1internal/client" "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" ) type options struct { @@ -69,7 +62,7 @@ func NewCreateCommand(f *factory.Factory) *cobra.Command { RunE: func(cmd *cobra.Command, args []string) error { validOutputFormats := flagutil.ValidOutputFormats if opts.outputFormat != "" && !flagutil.IsValidInput(opts.outputFormat, validOutputFormats...) { - return flag.InvalidValueError("output", opts.outputFormat, validOutputFormats...) + return flagutil.InvalidValueError("output", opts.outputFormat, validOutputFormats...) } if len(args) > 0 { @@ -129,7 +122,7 @@ func runCreate(opts *options) error { return err } - registry, _, err := serviceregistry.GetServiceRegistryByID(opts.Context, conn.API().ServiceRegistryMgmt(), opts.registryID) + registry, _, err := serviceregistryutil.GetServiceRegistryByID(opts.Context, conn.API().ServiceRegistryMgmt(), opts.registryID) if err != nil { return err } @@ -181,7 +174,7 @@ func runCreate(opts *options) error { request = request.Body(specifiedFile) metadata, _, err := request.Execute() if err != nil { - return registryinstanceerror.TransformError(err) + return serviceregistryutil.TransformInstanceError(err) } opts.Logger.Info(opts.localizer.MustLocalize("artifact.common.message.created")) diff --git a/pkg/cmd/registry/artifact/crud/delete/delete.go b/pkg/cmd/registry/artifact/crud/delete/delete.go index a34101bbc..9006b42b4 100644 --- a/pkg/cmd/registry/artifact/crud/delete/delete.go +++ b/pkg/cmd/registry/artifact/crud/delete/delete.go @@ -3,24 +3,17 @@ package delete import ( "context" "errors" - - flagutil "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/localize" - - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry/registryinstanceerror" - - "github.com/redhat-developer/app-services-cli/pkg/logging" - "github.com/AlecAivazis/survey/v2" - "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/util" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" + "github.com/spf13/cobra" ) type options struct { @@ -56,7 +49,7 @@ func NewDeleteCommand(f *factory.Factory) *cobra.Command { Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { if !opts.IO.CanPrompt() && !opts.force { - return flag.RequiredWhenNonInteractiveError("yes") + return flagutil.RequiredWhenNonInteractiveError("yes") } if opts.registryID != "" { @@ -112,7 +105,7 @@ func runDelete(opts *options) error { request := dataAPI.ArtifactsApi.DeleteArtifactsInGroup(opts.Context, opts.group) _, err = request.Execute() if err != nil { - return registryinstanceerror.TransformError(err) + return serviceregistryutil.TransformInstanceError(err) } opts.Logger.Info(opts.localizer.MustLocalize("artifact.common.message.AllArtifactsInGroupDeleted", localize.NewEntry("GroupName", opts.group))) } else { @@ -129,7 +122,7 @@ func runDelete(opts *options) error { _, err = request.Execute() if err != nil { - return registryinstanceerror.TransformError(err) + return serviceregistryutil.TransformInstanceError(err) } opts.Logger.Info(opts.localizer.MustLocalize("artifact.common.message.deleted", localize.NewEntry("Name", opts.artifact))) } diff --git a/pkg/cmd/registry/artifact/crud/get/get.go b/pkg/cmd/registry/artifact/crud/get/get.go index 78ffec80d..2976d9b0b 100644 --- a/pkg/cmd/registry/artifact/crud/get/get.go +++ b/pkg/cmd/registry/artifact/crud/get/get.go @@ -3,23 +3,20 @@ package get import ( "context" "fmt" + "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/util" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" "io/ioutil" "os" - "github.com/redhat-developer/app-services-cli/pkg/icon" "github.com/spf13/cobra" - - flagutil "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry/registryinstanceerror" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/util" - - "github.com/redhat-developer/app-services-cli/pkg/logging" ) type options struct { @@ -116,7 +113,7 @@ func runGet(opts *options) error { dataFile, _, err = request.Execute() } if err != nil { - return registryinstanceerror.TransformError(err) + return serviceregistryutil.TransformInstanceError(err) } fileContent, err := ioutil.ReadFile(dataFile.Name()) if err != nil { diff --git a/pkg/cmd/registry/artifact/crud/list/list.go b/pkg/cmd/registry/artifact/crud/list/list.go index 8df5b3063..053cead62 100644 --- a/pkg/cmd/registry/artifact/crud/list/list.go +++ b/pkg/cmd/registry/artifact/crud/list/list.go @@ -2,24 +2,20 @@ package list import ( "context" - + "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/util" + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" + + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" registryinstanceclient "github.com/redhat-developer/app-services-sdk-go/registryinstance/apiv1internal/client" - "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry/registryinstanceerror" - - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/util" - "github.com/redhat-developer/app-services-cli/pkg/logging" ) // row is the details of a Service Registry instance needed to print to a table @@ -74,7 +70,7 @@ func NewListCommand(f *factory.Factory) *cobra.Command { Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { if opts.outputFormat != "" && !flagutil.IsValidInput(opts.outputFormat, flagutil.ValidOutputFormats...) { - return flag.InvalidValueError("output", opts.outputFormat, flagutil.ValidOutputFormats...) + return flagutil.InvalidValueError("output", opts.outputFormat, flagutil.ValidOutputFormats...) } if opts.page < 1 || opts.limit < 1 { @@ -139,7 +135,7 @@ func runList(opts *options) error { response, _, err := request.Execute() if err != nil { - return registryinstanceerror.TransformError(err) + return serviceregistryutil.TransformInstanceError(err) } if len(response.Artifacts) == 0 && opts.outputFormat == "" { diff --git a/pkg/cmd/registry/artifact/crud/update/update.go b/pkg/cmd/registry/artifact/crud/update/update.go index 7153a90bf..be935c5f0 100644 --- a/pkg/cmd/registry/artifact/crud/update/update.go +++ b/pkg/cmd/registry/artifact/crud/update/update.go @@ -4,20 +4,16 @@ import ( "context" "os" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/util" - flagutil "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - - "github.com/redhat-developer/app-services-cli/pkg/logging" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" ) type options struct { diff --git a/pkg/cmd/registry/artifact/download/download.go b/pkg/cmd/registry/artifact/download/download.go index c703a4547..70888b339 100644 --- a/pkg/cmd/registry/artifact/download/download.go +++ b/pkg/cmd/registry/artifact/download/download.go @@ -3,23 +3,20 @@ package download import ( "context" "fmt" + "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/util" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" "io/ioutil" "os" - "github.com/redhat-developer/app-services-cli/pkg/icon" "github.com/spf13/cobra" - - flagutil "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry/registryinstanceerror" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/util" - - "github.com/redhat-developer/app-services-cli/pkg/logging" ) var unusedFlagIdValue int64 = -1 @@ -126,7 +123,7 @@ func runGet(opts *options) error { } if err != nil { - return registryinstanceerror.TransformError(err) + return serviceregistryutil.TransformInstanceError(err) } fileContent, err := ioutil.ReadFile(dataFile.Name()) diff --git a/pkg/cmd/registry/artifact/metadata/get.go b/pkg/cmd/registry/artifact/metadata/get.go index 56cb0bc06..0509f20df 100644 --- a/pkg/cmd/registry/artifact/metadata/get.go +++ b/pkg/cmd/registry/artifact/metadata/get.go @@ -3,24 +3,19 @@ package metadata import ( "context" - "github.com/redhat-developer/app-services-cli/pkg/color" - "github.com/redhat-developer/app-services-cli/pkg/icon" - - "github.com/spf13/cobra" - - flagutil "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry/registryinstanceerror" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/util" - - "github.com/redhat-developer/app-services-cli/pkg/logging" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/color" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" + "github.com/spf13/cobra" ) type GetOptions struct { @@ -95,7 +90,7 @@ func runGet(opts *GetOptions) error { return err } - registry, _, err := serviceregistry.GetServiceRegistryByID(opts.Context, conn.API().ServiceRegistryMgmt(), opts.registryID) + registry, _, err := serviceregistryutil.GetServiceRegistryByID(opts.Context, conn.API().ServiceRegistryMgmt(), opts.registryID) if err != nil { return err } @@ -115,7 +110,7 @@ func runGet(opts *GetOptions) error { request := dataAPI.MetadataApi.GetArtifactMetaData(opts.Context, opts.group, opts.artifact) response, _, err := request.Execute() if err != nil { - return registryinstanceerror.TransformError(err) + return serviceregistryutil.TransformInstanceError(err) } artifactURL, ok := util.GetArtifactURL(registry, &response) diff --git a/pkg/cmd/registry/artifact/metadata/set.go b/pkg/cmd/registry/artifact/metadata/set.go index 45a704265..d8103a24f 100644 --- a/pkg/cmd/registry/artifact/metadata/set.go +++ b/pkg/cmd/registry/artifact/metadata/set.go @@ -3,24 +3,20 @@ package metadata import ( "context" "encoding/json" - - "github.com/redhat-developer/app-services-cli/pkg/icon" - + "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/util" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/editor" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" "github.com/spf13/cobra" - "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/editor" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry/registryinstanceerror" - registryinstanceclient "github.com/redhat-developer/app-services-sdk-go/registryinstance/apiv1internal/client" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/util" - "github.com/redhat-developer/app-services-cli/pkg/logging" ) type SetOptions struct { @@ -120,7 +116,7 @@ func runSet(opts *SetOptions) error { request := dataAPI.MetadataApi.GetArtifactMetaData(opts.Context, opts.group, opts.artifact) currentMetadata, _, err := request.Execute() if err != nil { - return registryinstanceerror.TransformError(err) + return serviceregistryutil.TransformInstanceError(err) } editableMedata := ®istryinstanceclient.EditableMetaData{ @@ -151,7 +147,7 @@ func runSet(opts *SetOptions) error { editRequest := dataAPI.MetadataApi.UpdateArtifactMetaData(opts.Context, opts.group, opts.artifact) _, err = editRequest.EditableMetaData(*editableMedata).Execute() if err != nil { - return registryinstanceerror.TransformError(err) + return serviceregistryutil.TransformInstanceError(err) } opts.Logger.Info(icon.SuccessPrefix(), opts.localizer.MustLocalize("artifact.common.message.artifact.metadata.updated")) diff --git a/pkg/cmd/registry/artifact/migrate/export.go b/pkg/cmd/registry/artifact/migrate/export.go index bff21bc08..93763ce07 100644 --- a/pkg/cmd/registry/artifact/migrate/export.go +++ b/pkg/cmd/registry/artifact/migrate/export.go @@ -2,21 +2,17 @@ package migrate import ( "context" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" "io" "os" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry/registryinstanceerror" - - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - - "github.com/redhat-developer/app-services-cli/pkg/logging" - "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" ) type ExportOptions struct { @@ -92,7 +88,7 @@ func runExport(opts *ExportOptions) error { request := dataAPI.AdminApi.ExportData(opts.Context) file, _, err := request.Execute() if err != nil { - return registryinstanceerror.TransformError(err) + return serviceregistryutil.TransformInstanceError(err) } _, err = io.Copy(fileContent, file) if err != nil { diff --git a/pkg/cmd/registry/artifact/migrate/import.go b/pkg/cmd/registry/artifact/migrate/import.go index a05d426db..8248026fa 100644 --- a/pkg/cmd/registry/artifact/migrate/import.go +++ b/pkg/cmd/registry/artifact/migrate/import.go @@ -2,20 +2,16 @@ package migrate import ( "context" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" "os" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry/registryinstanceerror" - - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - - "github.com/redhat-developer/app-services-cli/pkg/logging" - "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" ) type ImportOptions struct { @@ -95,7 +91,7 @@ func runImport(opts *ImportOptions) error { request := dataAPI.AdminApi.ImportData(opts.Context) _, err = request.Body(specifiedFile).Execute() if err != nil { - return registryinstanceerror.TransformError(err) + return serviceregistryutil.TransformInstanceError(err) } opts.Logger.Info(opts.localizer.MustLocalize("artifact.import.success")) diff --git a/pkg/cmd/registry/artifact/role/add/add.go b/pkg/cmd/registry/artifact/role/add/add.go index e44d7d89c..e70ab8672 100644 --- a/pkg/cmd/registry/artifact/role/add/add.go +++ b/pkg/cmd/registry/artifact/role/add/add.go @@ -2,23 +2,17 @@ package add import ( "context" - - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry/registryinstanceerror" - - "github.com/redhat-developer/app-services-cli/pkg/connection" - + "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/util" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" registryinstanceclient "github.com/redhat-developer/app-services-sdk-go/registryinstance/apiv1internal/client" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - - "github.com/redhat-developer/app-services-cli/pkg/logging" - "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/util" ) type options struct { @@ -128,7 +122,7 @@ func runAdd(opts *options) error { Role: *role, }).Execute() if err != nil { - return registryinstanceerror.TransformError(err) + return serviceregistryutil.TransformInstanceError(err) } } else { opts.Logger.Info(opts.localizer.MustLocalize("registry.role.cmd.creating")) @@ -139,7 +133,7 @@ func runAdd(opts *options) error { request := dataAPI.AdminApi.CreateRoleMapping(opts.Context) _, err = request.RoleMapping(roleMapping).Execute() if err != nil { - return registryinstanceerror.TransformError(err) + return serviceregistryutil.TransformInstanceError(err) } } @@ -152,7 +146,7 @@ func runAdd(opts *options) error { func principalHasRole(opts *options, admin registryinstanceclient.AdminApi) bool { _, _, err := admin.GetRoleMapping(opts.Context, opts.principal).Execute() if err != nil { - apiError, _ := registryinstanceerror.GetAPIError(err) + apiError, _ := serviceregistryutil.GetInstanceAPIError(err) return apiError.GetErrorCode() != 404 } return true diff --git a/pkg/cmd/registry/artifact/role/list/list.go b/pkg/cmd/registry/artifact/role/list/list.go index d5429576b..c9ae34b74 100644 --- a/pkg/cmd/registry/artifact/role/list/list.go +++ b/pkg/cmd/registry/artifact/role/list/list.go @@ -2,23 +2,19 @@ package list import ( "context" - + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" + + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" registryinstanceclient "github.com/redhat-developer/app-services-sdk-go/registryinstance/apiv1internal/client" - flagutil "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry/registryinstanceerror" - - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - "github.com/redhat-developer/app-services-cli/pkg/logging" ) // row is the details of a Service Registry instance needed to print to a table @@ -58,7 +54,7 @@ func NewListCommand(f *factory.Factory) *cobra.Command { Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { if opts.outputFormat != "" && !flagutil.IsValidInput(opts.outputFormat, flagutil.ValidOutputFormats...) { - return flag.InvalidValueError("output", opts.outputFormat, flagutil.ValidOutputFormats...) + return flagutil.InvalidValueError("output", opts.outputFormat, flagutil.ValidOutputFormats...) } if opts.registryID != "" { @@ -104,7 +100,7 @@ func runList(opts *options) error { } mappings, _, err := a.AdminApi.ListRoleMappings(opts.Context).Execute() if err != nil { - return registryinstanceerror.TransformError(err) + return serviceregistryutil.TransformInstanceError(err) } if len(mappings) == 0 && opts.outputFormat == "" { diff --git a/pkg/cmd/registry/artifact/role/revoke/revoke.go b/pkg/cmd/registry/artifact/role/revoke/revoke.go index e7e821352..65b0a538b 100644 --- a/pkg/cmd/registry/artifact/role/revoke/revoke.go +++ b/pkg/cmd/registry/artifact/role/revoke/revoke.go @@ -2,20 +2,14 @@ package revoke import ( "context" - - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry/registryinstanceerror" - - "github.com/redhat-developer/app-services-cli/pkg/connection" - - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - - "github.com/redhat-developer/app-services-cli/pkg/logging" - + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" ) type options struct { @@ -103,7 +97,7 @@ func runRevoke(opts *options) error { _, err = dataAPI.AdminApi.DeleteRoleMapping(opts.Context, opts.principal).Execute() if err != nil { - return registryinstanceerror.TransformError(err) + return serviceregistryutil.TransformInstanceError(err) } opts.Logger.Info(opts.localizer.MustLocalize("registry.role.cmd.revoke.success")) diff --git a/pkg/cmd/registry/artifact/role/role.go b/pkg/cmd/registry/artifact/role/role.go index ac38e37a5..9d17ba460 100644 --- a/pkg/cmd/registry/artifact/role/role.go +++ b/pkg/cmd/registry/artifact/role/role.go @@ -1,10 +1,10 @@ package role import ( - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/role/add" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/role/list" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/role/revoke" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" "github.com/spf13/cobra" ) diff --git a/pkg/cmd/registry/artifact/state/state.go b/pkg/cmd/registry/artifact/state/state.go index 73b00476d..1c8a4b038 100644 --- a/pkg/cmd/registry/artifact/state/state.go +++ b/pkg/cmd/registry/artifact/state/state.go @@ -2,20 +2,17 @@ package state import ( "context" - + "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/util" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" "github.com/spf13/cobra" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry/registryinstanceerror" - registryinstanceclient "github.com/redhat-developer/app-services-sdk-go/registryinstance/apiv1internal/client" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/util" - "github.com/redhat-developer/app-services-cli/pkg/logging" ) type options struct { @@ -114,7 +111,7 @@ func runSet(opts *options) error { request := dataAPI.ArtifactsApi.UpdateArtifactState(opts.context, opts.group, opts.artifact) _, err = request.UpdateState(*registryinstanceclient.NewUpdateState(*updateState)).Execute() if err != nil { - return registryinstanceerror.TransformError(err) + return serviceregistryutil.TransformInstanceError(err) } opts.Logger.Info(opts.localizer.MustLocalize("artifact.common.message.artifact.state.updated")) diff --git a/pkg/cmd/registry/artifact/versions/versions.go b/pkg/cmd/registry/artifact/versions/versions.go index 78ffc1dfb..5b8be1be9 100644 --- a/pkg/cmd/registry/artifact/versions/versions.go +++ b/pkg/cmd/registry/artifact/versions/versions.go @@ -2,22 +2,18 @@ package versions import ( "context" - - "github.com/redhat-developer/app-services-cli/pkg/icon" - "github.com/spf13/cobra" - - flagutil "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry/registryinstanceerror" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/util" - - "github.com/redhat-developer/app-services-cli/pkg/logging" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" + "github.com/spf13/cobra" ) type options struct { @@ -107,7 +103,7 @@ func runGet(opts *options) error { request := dataAPI.VersionsApi.ListArtifactVersions(opts.Context, opts.group, opts.artifact) response, _, err := request.Execute() if err != nil { - return registryinstanceerror.TransformError(err) + return serviceregistryutil.TransformInstanceError(err) } opts.Logger.Info(icon.SuccessPrefix(), opts.localizer.MustLocalize("artifact.common.message.artifact.versions.fetched")) diff --git a/pkg/cmd/registry/create/create.go b/pkg/cmd/registry/create/create.go index 8b02dbbea..04bfe7339 100644 --- a/pkg/cmd/registry/create/create.go +++ b/pkg/cmd/registry/create/create.go @@ -4,28 +4,22 @@ import ( "context" "fmt" - "github.com/redhat-developer/app-services-cli/pkg/ams" - "github.com/redhat-developer/app-services-cli/pkg/icon" - - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry" - - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - flagutil "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" + "github.com/redhat-developer/app-services-cli/pkg/accountmgmtutil" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" srsmgmtv1 "github.com/redhat-developer/app-services-sdk-go/registrymgmt/apiv1/client" "github.com/AlecAivazis/survey/v2" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - - "github.com/redhat-developer/app-services-cli/pkg/logging" - "github.com/spf13/cobra" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" ) type options struct { @@ -64,7 +58,7 @@ func NewCreateCommand(f *factory.Factory) *cobra.Command { Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { if opts.name != "" { - if err := serviceregistry.ValidateName(opts.name); err != nil { + if err := serviceregistryutil.ValidateName(opts.name); err != nil { return err } } @@ -77,7 +71,7 @@ func NewCreateCommand(f *factory.Factory) *cobra.Command { validOutputFormats := flagutil.ValidOutputFormats if opts.outputFormat != "" && !flagutil.IsValidInput(opts.outputFormat, validOutputFormats...) { - return flag.InvalidValueError("output", opts.outputFormat, validOutputFormats...) + return flagutil.InvalidValueError("output", opts.outputFormat, validOutputFormats...) } return runCreate(opts) @@ -125,10 +119,10 @@ func runCreate(opts *options) error { opts.Logger.Debug("Checking if terms and conditions have been accepted") // the user must have accepted the terms and conditions from the provider // before they can create a registry instance - termsSpec := ams.GetRemoteTermsSpec(&opts.Context, opts.Logger) + termsSpec := accountmgmtutil.GetRemoteTermsSpec(&opts.Context, opts.Logger) var termsAccepted bool var termsURL string - termsAccepted, termsURL, err = ams.CheckTermsAccepted(opts.Context, termsSpec.ServiceRegistry, conn) + termsAccepted, termsURL, err = accountmgmtutil.CheckTermsAccepted(opts.Context, termsSpec.ServiceRegistry, conn) if err != nil { return err } @@ -189,7 +183,7 @@ func promptPayload(opts *options) (payload *srsmgmtv1.RegistryCreate, err error) Help: opts.localizer.MustLocalize("registry.cmd.create.input.name.help"), } - err = survey.AskOne(promptName, &answers.Name, survey.WithValidator(serviceregistry.ValidateName)) + err = survey.AskOne(promptName, &answers.Name, survey.WithValidator(serviceregistryutil.ValidateName)) if err != nil { return nil, err } diff --git a/pkg/cmd/registry/delete/delete.go b/pkg/cmd/registry/delete/delete.go index 825172d00..1ec32cd0f 100644 --- a/pkg/cmd/registry/delete/delete.go +++ b/pkg/cmd/registry/delete/delete.go @@ -3,19 +3,16 @@ package delete import ( "context" "fmt" - "github.com/redhat-developer/app-services-cli/pkg/icon" - - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry" - - "github.com/redhat-developer/app-services-cli/pkg/logging" - "github.com/AlecAivazis/survey/v2" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" "github.com/spf13/cobra" srsmgmtv1client "github.com/redhat-developer/app-services-sdk-go/registrymgmt/apiv1/client" @@ -52,7 +49,7 @@ func NewDeleteCommand(f *factory.Factory) *cobra.Command { Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { if !opts.IO.CanPrompt() && !opts.force { - return flag.RequiredWhenNonInteractiveError("yes") + return flagutil.RequiredWhenNonInteractiveError("yes") } if opts.name != "" && opts.id != "" { @@ -101,12 +98,12 @@ func runDelete(opts *options) error { var registry *srsmgmtv1client.Registry if opts.name != "" { - registry, _, err = serviceregistry.GetServiceRegistryByName(opts.Context, api.ServiceRegistryMgmt(), opts.name) + registry, _, err = serviceregistryutil.GetServiceRegistryByName(opts.Context, api.ServiceRegistryMgmt(), opts.name) if err != nil { return err } } else { - registry, _, err = serviceregistry.GetServiceRegistryByID(opts.Context, api.ServiceRegistryMgmt(), opts.id) + registry, _, err = serviceregistryutil.GetServiceRegistryByID(opts.Context, api.ServiceRegistryMgmt(), opts.id) if err != nil { return err } diff --git a/pkg/cmd/registry/describe/describe.go b/pkg/cmd/registry/describe/describe.go index 0a40c9c7f..57278abdb 100644 --- a/pkg/cmd/registry/describe/describe.go +++ b/pkg/cmd/registry/describe/describe.go @@ -3,17 +3,14 @@ package describe import ( "context" - flagutil "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry" - - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" srsmgmtv1 "github.com/redhat-developer/app-services-sdk-go/registrymgmt/apiv1/client" "github.com/spf13/cobra" ) @@ -50,7 +47,7 @@ func NewDescribeCommand(f *factory.Factory) *cobra.Command { RunE: func(cmd *cobra.Command, args []string) error { validOutputFormats := flagutil.ValidOutputFormats if opts.outputFormat != "" && !flagutil.IsValidInput(opts.outputFormat, validOutputFormats...) { - return flag.InvalidValueError("output", opts.outputFormat, validOutputFormats...) + return flagutil.InvalidValueError("output", opts.outputFormat, validOutputFormats...) } if opts.name != "" && opts.id != "" { @@ -96,12 +93,12 @@ func runDescribe(opts *options) error { var registry *srsmgmtv1.Registry if opts.name != "" { - registry, _, err = serviceregistry.GetServiceRegistryByName(opts.Context, api.ServiceRegistryMgmt(), opts.name) + registry, _, err = serviceregistryutil.GetServiceRegistryByName(opts.Context, api.ServiceRegistryMgmt(), opts.name) if err != nil { return err } } else { - registry, _, err = serviceregistry.GetServiceRegistryByID(opts.Context, api.ServiceRegistryMgmt(), opts.id) + registry, _, err = serviceregistryutil.GetServiceRegistryByID(opts.Context, api.ServiceRegistryMgmt(), opts.id) if err != nil { return err } diff --git a/pkg/cmd/registry/list/list.go b/pkg/cmd/registry/list/list.go index 3ba0d1af9..a74062995 100644 --- a/pkg/cmd/registry/list/list.go +++ b/pkg/cmd/registry/list/list.go @@ -4,23 +4,21 @@ import ( "context" "fmt" - "github.com/redhat-developer/app-services-cli/pkg/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" srsmgmtv1 "github.com/redhat-developer/app-services-sdk-go/registrymgmt/apiv1/client" - "github.com/redhat-developer/app-services-cli/pkg/cmdutil" - flagutil "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/spf13/cobra" "github.com/redhat-developer/app-services-cli/internal/build" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - "github.com/redhat-developer/app-services-cli/pkg/logging" ) // RegistryRow is the details of a Service Registry instance needed to print to a table @@ -64,7 +62,7 @@ func NewListCommand(f *factory.Factory) *cobra.Command { Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { if opts.outputFormat != "" && !flagutil.IsValidInput(opts.outputFormat, flagutil.ValidOutputFormats...) { - return flag.InvalidValueError("output", opts.outputFormat, flagutil.ValidOutputFormats...) + return flagutil.InvalidValueError("output", opts.outputFormat, flagutil.ValidOutputFormats...) } if opts.page < 1 { return opts.localizer.MustLocalizeError("common.validation.page.error.invalid.minValue", localize.NewEntry("Page", opts.page)) diff --git a/pkg/cmd/registry/registry.go b/pkg/cmd/registry/registry.go index a7feaa64c..6dfafc949 100644 --- a/pkg/cmd/registry/registry.go +++ b/pkg/cmd/registry/registry.go @@ -1,16 +1,15 @@ -// REST API exposed via the serve command. +// Package registry REST API exposed via the serve command. package registry import ( - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/artifact/role" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/create" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/delete" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/describe" - "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/list" "github.com/redhat-developer/app-services-cli/pkg/cmd/registry/use" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" "github.com/spf13/cobra" ) diff --git a/pkg/cmd/registry/use/use.go b/pkg/cmd/registry/use/use.go index 9248df022..999e6a664 100644 --- a/pkg/cmd/registry/use/use.go +++ b/pkg/cmd/registry/use/use.go @@ -3,16 +3,16 @@ package use import ( "context" "fmt" - "github.com/redhat-developer/app-services-cli/pkg/icon" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/logging" srsmgmtv1 "github.com/redhat-developer/app-services-sdk-go/registrymgmt/apiv1/client" "github.com/spf13/cobra" ) @@ -95,12 +95,12 @@ func runUse(opts *options) error { var registry *srsmgmtv1.Registry if opts.name != "" { - registry, _, err = serviceregistry.GetServiceRegistryByName(opts.Context, api.ServiceRegistryMgmt(), opts.name) + registry, _, err = serviceregistryutil.GetServiceRegistryByName(opts.Context, api.ServiceRegistryMgmt(), opts.name) if err != nil { return err } } else { - registry, _, err = serviceregistry.GetServiceRegistryByID(opts.Context, api.ServiceRegistryMgmt(), opts.id) + registry, _, err = serviceregistryutil.GetServiceRegistryByID(opts.Context, api.ServiceRegistryMgmt(), opts.id) if err != nil { return err } @@ -131,7 +131,7 @@ func runInteractivePrompt(opts *options) error { opts.Logger.Debug(opts.localizer.MustLocalize("common.log.debug.startingInteractivePrompt")) - selectedRegistry, err := serviceregistry.InteractiveSelect(opts.Context, conn, opts.Logger) + selectedRegistry, err := serviceregistryutil.InteractiveSelect(opts.Context, conn, opts.Logger) if err != nil { return err } diff --git a/pkg/cmd/root/root.go b/pkg/cmd/root/root.go index 983a845e7..603e6ef2a 100644 --- a/pkg/cmd/root/root.go +++ b/pkg/cmd/root/root.go @@ -1,22 +1,19 @@ package root import ( - "github.com/redhat-developer/app-services-cli/pkg/arguments" - "github.com/redhat-developer/app-services-cli/pkg/cmd/docs" - - "github.com/redhat-developer/app-services-cli/pkg/cmd/registry" - - "github.com/redhat-developer/app-services-cli/pkg/cmd/login" - "github.com/redhat-developer/app-services-cli/pkg/cmd/status" - "github.com/redhat-developer/app-services-cli/pkg/cmd/whoami" - "github.com/redhat-developer/app-services-cli/pkg/cmd/cluster" "github.com/redhat-developer/app-services-cli/pkg/cmd/completion" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" + "github.com/redhat-developer/app-services-cli/pkg/cmd/docs" "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka" + "github.com/redhat-developer/app-services-cli/pkg/cmd/login" "github.com/redhat-developer/app-services-cli/pkg/cmd/logout" + "github.com/redhat-developer/app-services-cli/pkg/cmd/registry" "github.com/redhat-developer/app-services-cli/pkg/cmd/serviceaccount" + "github.com/redhat-developer/app-services-cli/pkg/cmd/status" cliversion "github.com/redhat-developer/app-services-cli/pkg/cmd/version" + "github.com/redhat-developer/app-services-cli/pkg/cmd/whoami" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" "github.com/spf13/cobra" ) @@ -31,7 +28,7 @@ func NewRootCommand(f *factory.Factory, version string) *cobra.Command { } fs := cmd.PersistentFlags() - arguments.AddDebugFlag(fs) + flagutil.AddDebugFlag(fs) // this flag comes out of the box, but has its own basic usage text, so this overrides that var help bool diff --git a/pkg/cmd/root/validator_test.go b/pkg/cmd/root/validator_test.go index 33e6b1dd6..f1e68f915 100644 --- a/pkg/cmd/root/validator_test.go +++ b/pkg/cmd/root/validator_test.go @@ -2,16 +2,16 @@ package root import ( "fmt" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory/defaultfactory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/localize/goi18n" "os" "testing" "github.com/aerogear/charmil/validator" "github.com/aerogear/charmil/validator/rules" "github.com/redhat-developer/app-services-cli/internal/build" - "github.com/redhat-developer/app-services-cli/internal/config" "github.com/redhat-developer/app-services-cli/internal/mockutil" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/localize/goi18n" ) func Test_ValidateCommandsUsingCharmilValidator(t *testing.T) { @@ -22,7 +22,7 @@ func Test_ValidateCommandsUsingCharmilValidator(t *testing.T) { } buildVersion := build.Version - cmdFactory := factory.New(localizer) + cmdFactory := defaultfactory.New(localizer) if err != nil { fmt.Println(cmdFactory.IOStreams.ErrOut, err) os.Exit(1) diff --git a/pkg/cmd/serviceaccount/create/create.go b/pkg/cmd/serviceaccount/create/create.go index 658c6fead..c46d90abf 100644 --- a/pkg/cmd/serviceaccount/create/create.go +++ b/pkg/cmd/serviceaccount/create/create.go @@ -5,25 +5,22 @@ import ( "fmt" "os" - "github.com/redhat-developer/app-services-cli/pkg/color" - "github.com/redhat-developer/app-services-cli/pkg/icon" - "github.com/redhat-developer/app-services-cli/pkg/ioutil/spinner" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/color" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/spinner" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/serviceaccountutil/credentials" + "github.com/redhat-developer/app-services-cli/pkg/serviceaccountutil/validation" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceaccount/validation" kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/AlecAivazis/survey/v2" - flagutil "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/serviceaccount/credentials" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - "github.com/redhat-developer/app-services-cli/pkg/logging" "github.com/spf13/cobra" ) @@ -84,7 +81,7 @@ func NewCreateCommand(f *factory.Factory) *cobra.Command { // check that a valid --file-format flag value is used validOutput := flagutil.IsValidInput(opts.fileFormat, flagutil.CredentialsOutputFormats...) if !validOutput && opts.fileFormat != "" { - return flag.InvalidValueError("file-format", opts.fileFormat, flagutil.CredentialsOutputFormats...) + return flagutil.InvalidValueError("file-format", opts.fileFormat, flagutil.CredentialsOutputFormats...) } return runCreate(opts) @@ -137,7 +134,7 @@ func runCreate(opts *options) error { serviceAccountPayload := kafkamgmtclient.ServiceAccountRequest{Name: opts.shortDescription} serviceacct, httpRes, err := conn.API(). - ServiceAccount(). + ServiceAccountMgmt(). CreateServiceAccount(opts.Context). ServiceAccountRequest(serviceAccountPayload). Execute() diff --git a/pkg/cmd/serviceaccount/delete/delete.go b/pkg/cmd/serviceaccount/delete/delete.go index cfa3cb79c..ed4f21300 100644 --- a/pkg/cmd/serviceaccount/delete/delete.go +++ b/pkg/cmd/serviceaccount/delete/delete.go @@ -2,18 +2,18 @@ package delete import ( "context" - "github.com/redhat-developer/app-services-cli/pkg/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/serviceaccountutil/validation" "net/http" "github.com/AlecAivazis/survey/v2" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" - "github.com/redhat-developer/app-services-cli/pkg/serviceaccount/validation" "github.com/spf13/cobra" ) @@ -48,7 +48,7 @@ func NewDeleteCommand(f *factory.Factory) *cobra.Command { Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, _ []string) error { if !opts.IO.CanPrompt() && !opts.force { - return flag.RequiredWhenNonInteractiveError("yes") + return flagutil.RequiredWhenNonInteractiveError("yes") } validator := &validation.Validator{ @@ -78,7 +78,7 @@ func runDelete(opts *options) (err error) { return err } - _, httpRes, err := conn.API().ServiceAccount().GetServiceAccountById(opts.Context, opts.id).Execute() + _, httpRes, err := conn.API().ServiceAccountMgmt().GetServiceAccountById(opts.Context, opts.id).Execute() if httpRes != nil { defer httpRes.Body.Close() } @@ -118,7 +118,7 @@ func deleteServiceAccount(opts *options) error { return err } - _, httpRes, err := conn.API().ServiceAccount().DeleteServiceAccountById(opts.Context, opts.id).Execute() + _, httpRes, err := conn.API().ServiceAccountMgmt().DeleteServiceAccountById(opts.Context, opts.id).Execute() if httpRes != nil { defer httpRes.Body.Close() } diff --git a/pkg/cmd/serviceaccount/describe/describe.go b/pkg/cmd/serviceaccount/describe/describe.go index 284fa67d0..13500deb1 100644 --- a/pkg/cmd/serviceaccount/describe/describe.go +++ b/pkg/cmd/serviceaccount/describe/describe.go @@ -4,14 +4,14 @@ import ( "context" "net/http" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - flagutil "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/spf13/cobra" ) @@ -44,7 +44,7 @@ func NewDescribeCommand(f *factory.Factory) *cobra.Command { RunE: func(cmd *cobra.Command, args []string) error { validOutputFormats := flagutil.ValidOutputFormats if opts.outputFormat != "" && !flagutil.IsValidInput(opts.outputFormat, validOutputFormats...) { - return flag.InvalidValueError("output", opts.outputFormat, validOutputFormats...) + return flagutil.InvalidValueError("output", opts.outputFormat, validOutputFormats...) } return runDescribe(opts) @@ -69,7 +69,7 @@ func runDescribe(opts *options) error { api := conn.API() - res, httpRes, err := api.ServiceAccount().GetServiceAccountById(opts.Context, opts.id).Execute() + res, httpRes, err := api.ServiceAccountMgmt().GetServiceAccountById(opts.Context, opts.id).Execute() if httpRes != nil { defer httpRes.Body.Close() } diff --git a/pkg/cmd/serviceaccount/list/list.go b/pkg/cmd/serviceaccount/list/list.go index 22cfea586..8c3129658 100644 --- a/pkg/cmd/serviceaccount/list/list.go +++ b/pkg/cmd/serviceaccount/list/list.go @@ -3,15 +3,14 @@ package list import ( "context" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - flagutil "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" "github.com/spf13/cobra" ) @@ -56,7 +55,7 @@ func NewListCommand(f *factory.Factory) *cobra.Command { Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, _ []string) error { if opts.output != "" && !flagutil.IsValidInput(opts.output, flagutil.ValidOutputFormats...) { - return flag.InvalidValueError("output", opts.output, flagutil.ValidOutputFormats...) + return flagutil.InvalidValueError("output", opts.output, flagutil.ValidOutputFormats...) } return runList(opts) @@ -76,7 +75,7 @@ func runList(opts *options) (err error) { return err } - res, _, err := conn.API().ServiceAccount().GetServiceAccounts(opts.Context).Execute() + res, _, err := conn.API().ServiceAccountMgmt().GetServiceAccounts(opts.Context).Execute() if err != nil { return err } diff --git a/pkg/cmd/serviceaccount/resetcredentials/reset_credentials.go b/pkg/cmd/serviceaccount/resetcredentials/reset_credentials.go index 4a90efd4a..c3ec9625a 100644 --- a/pkg/cmd/serviceaccount/resetcredentials/reset_credentials.go +++ b/pkg/cmd/serviceaccount/resetcredentials/reset_credentials.go @@ -6,23 +6,21 @@ import ( "net/http" "os" - kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/color" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/serviceaccountutil/credentials" + "github.com/redhat-developer/app-services-cli/pkg/serviceaccountutil/validation" - "github.com/redhat-developer/app-services-cli/pkg/color" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/icon" - "github.com/redhat-developer/app-services-cli/pkg/localize" + kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" "github.com/AlecAivazis/survey/v2" - flagutil "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/serviceaccount/credentials" - "github.com/redhat-developer/app-services-cli/pkg/serviceaccount/validation" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - "github.com/redhat-developer/app-services-cli/pkg/logging" "github.com/spf13/cobra" ) @@ -72,7 +70,7 @@ func NewResetCredentialsCommand(f *factory.Factory) *cobra.Command { validOutput := flagutil.IsValidInput(opts.fileFormat, flagutil.CredentialsOutputFormats...) if !validOutput && opts.fileFormat != "" { - return flag.InvalidValueError("file-format", opts.fileFormat, flagutil.CredentialsOutputFormats...) + return flagutil.InvalidValueError("file-format", opts.fileFormat, flagutil.CredentialsOutputFormats...) } if !opts.interactive { @@ -110,7 +108,7 @@ func runResetCredentials(opts *options) (err error) { api := conn.API() - _, httpRes, err := api.ServiceAccount().GetServiceAccountById(opts.Context, opts.id).Execute() + _, httpRes, err := api.ServiceAccountMgmt().GetServiceAccountById(opts.Context, opts.id).Execute() if httpRes != nil { defer httpRes.Body.Close() } @@ -191,7 +189,7 @@ func resetCredentials(opts *options) (*kafkamgmtclient.ServiceAccount, error) { opts.Logger.Debug(opts.localizer.MustLocalize("serviceAccount.resetCredentials.log.debug.resettingCredentials", localize.NewEntry("ID", opts.id))) - serviceacct, httpRes, err := api.ServiceAccount().ResetServiceAccountCreds(opts.Context, opts.id).Execute() + serviceacct, httpRes, err := api.ServiceAccountMgmt().ResetServiceAccountCreds(opts.Context, opts.id).Execute() if httpRes != nil { defer httpRes.Body.Close() } diff --git a/pkg/cmd/serviceaccount/serviceaccount.go b/pkg/cmd/serviceaccount/serviceaccount.go index c401498f7..def0c8c28 100644 --- a/pkg/cmd/serviceaccount/serviceaccount.go +++ b/pkg/cmd/serviceaccount/serviceaccount.go @@ -1,12 +1,12 @@ package serviceaccount import ( - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" "github.com/redhat-developer/app-services-cli/pkg/cmd/serviceaccount/create" "github.com/redhat-developer/app-services-cli/pkg/cmd/serviceaccount/delete" "github.com/redhat-developer/app-services-cli/pkg/cmd/serviceaccount/describe" "github.com/redhat-developer/app-services-cli/pkg/cmd/serviceaccount/list" "github.com/redhat-developer/app-services-cli/pkg/cmd/serviceaccount/resetcredentials" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" "github.com/spf13/cobra" ) diff --git a/pkg/cmd/status/status.go b/pkg/cmd/status/status.go index 7d7be4df1..17c2002b8 100644 --- a/pkg/cmd/status/status.go +++ b/pkg/cmd/status/status.go @@ -3,19 +3,16 @@ package status import ( "context" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + pkgStatus "github.com/redhat-developer/app-services-cli/pkg/core/status" - "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/logging" - pkgStatus "github.com/redhat-developer/app-services-cli/pkg/status" - - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" "github.com/spf13/cobra" ) @@ -69,7 +66,7 @@ func NewStatusCommand(f *factory.Factory) *cobra.Command { validOutputFormats := flagutil.ValidOutputFormats if opts.outputFormat != "" && !flagutil.IsValidInput(opts.outputFormat, validOutputFormats...) { - return flag.InvalidValueError("output", opts.outputFormat, validOutputFormats...) + return flagutil.InvalidValueError("output", opts.outputFormat, validOutputFormats...) } return runStatus(opts) diff --git a/pkg/cmd/version/version.go b/pkg/cmd/version/version.go index f80c26c20..6b88276b4 100644 --- a/pkg/cmd/version/version.go +++ b/pkg/cmd/version/version.go @@ -3,13 +3,12 @@ package version import ( "context" "fmt" - "github.com/redhat-developer/app-services-cli/internal/build" "github.com/redhat-developer/app-services-cli/pkg/cmd/debug" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" "github.com/spf13/cobra" ) diff --git a/pkg/cmd/whoami/whoami.go b/pkg/cmd/whoami/whoami.go index 4b0321d02..4af1ffad8 100644 --- a/pkg/cmd/whoami/whoami.go +++ b/pkg/cmd/whoami/whoami.go @@ -2,15 +2,13 @@ package whoami import ( "fmt" - - "github.com/redhat-developer/app-services-cli/internal/config" "github.com/redhat-developer/app-services-cli/pkg/auth/token" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" - + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" "github.com/spf13/cobra" ) diff --git a/pkg/connection/keycloak_connection.go b/pkg/connection/keycloak_connection.go deleted file mode 100644 index 84a85ac50..000000000 --- a/pkg/connection/keycloak_connection.go +++ /dev/null @@ -1,413 +0,0 @@ -package connection - -import ( - "context" - "crypto/x509" - "fmt" - "net" - "net/http" - "net/url" - - "github.com/redhat-developer/app-services-cli/internal/build" - - kafkainstance "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal" - kafkainstanceclient "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal/client" - - kafkamgmt "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1" - kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" - - registryinstance "github.com/redhat-developer/app-services-sdk-go/registryinstance/apiv1internal" - registryinstanceclient "github.com/redhat-developer/app-services-sdk-go/registryinstance/apiv1internal/client" - - registrymgmt "github.com/redhat-developer/app-services-sdk-go/registrymgmt/apiv1" - registrymgmtclient "github.com/redhat-developer/app-services-sdk-go/registrymgmt/apiv1/client" - - "golang.org/x/oauth2" - - "github.com/redhat-developer/app-services-cli/pkg/api/ams/amsclient" - "github.com/redhat-developer/app-services-cli/pkg/api/kas" - "github.com/redhat-developer/app-services-cli/pkg/api/rbac" - - "github.com/redhat-developer/app-services-cli/pkg/kafka/kafkaerr" - - "github.com/redhat-developer/app-services-cli/internal/config" - - "github.com/redhat-developer/app-services-cli/pkg/api" - - "github.com/redhat-developer/app-services-cli/pkg/logging" - - "github.com/Nerzal/gocloak/v7" - - "github.com/redhat-developer/app-services-cli/pkg/auth/token" - - svcstatus "github.com/redhat-developer/app-services-cli/pkg/service/status" -) - -var DefaultScopes = []string{ - "openid", -} - -// KeycloakConnection contains the data needed to connect to the `api.openshift.com`. Don't create instances -// of this type directly, use the builder instead -type KeycloakConnection struct { - trustedCAs *x509.CertPool - insecure bool - defaultHTTPClient *http.Client - clientID string - Token *token.Token - MASToken *token.Token - scopes []string - keycloakClient gocloak.GoCloak - masKeycloakClient gocloak.GoCloak - apiURL *url.URL - consoleURL *url.URL - defaultRealm string - masRealm string - logger logging.Logger - Config config.IConfig - connectionConfig *Config -} - -// RefreshTokens will fetch a refreshed copy of the access token and refresh token from the authentication server -// The new tokens will have an increased expiry time and are persisted in the config and connection -func (c *KeycloakConnection) RefreshTokens(ctx context.Context) (err error) { - c.logger.Debug("Refreshing tokens") - - cfg, err := c.Config.Load() - if err != nil { - return err - } - - // track if we need to update the config with new token values - var cfgChanged bool - if c.connectionConfig.RequireAuth { - // nolint:govet - refreshedTk, err := c.keycloakClient.RefreshToken(ctx, c.Token.RefreshToken, c.clientID, "", c.defaultRealm) - if err != nil { - return &AuthError{err} - } - - if refreshedTk.AccessToken != c.Token.AccessToken { - c.Token.AccessToken = refreshedTk.AccessToken - cfg.AccessToken = refreshedTk.AccessToken - cfgChanged = true - } - if refreshedTk.RefreshToken != c.Token.RefreshToken { - c.Token.RefreshToken = refreshedTk.RefreshToken - cfg.RefreshToken = refreshedTk.RefreshToken - cfgChanged = true - } - } - - if c.connectionConfig.RequireMASAuth { - // nolint:govet - refreshedMasTk, err := c.masKeycloakClient.RefreshToken(ctx, c.MASToken.RefreshToken, c.clientID, "", c.masRealm) - if err != nil { - return &MasAuthError{err} - } - if refreshedMasTk.AccessToken != c.MASToken.AccessToken { - c.MASToken.AccessToken = refreshedMasTk.AccessToken - cfg.MasAccessToken = refreshedMasTk.AccessToken - cfgChanged = true - } - if refreshedMasTk.RefreshToken != c.MASToken.RefreshToken { - c.MASToken.RefreshToken = refreshedMasTk.RefreshToken - cfg.MasRefreshToken = refreshedMasTk.RefreshToken - cfgChanged = true - } - } - - if !cfgChanged { - return nil - } - - if err = c.Config.Save(cfg); err != nil { - return err - } - c.logger.Debug("Tokens refreshed") - - return nil -} - -// Logout logs the user out from the authentication server -// Invalidating and removing the access and refresh tokens -// The user will have to log in again to access the API -func (c *KeycloakConnection) Logout(ctx context.Context) (err error) { - err = c.keycloakClient.Logout(ctx, c.clientID, "", c.defaultRealm, c.Token.RefreshToken) - if err != nil { - return &AuthError{err} - } - - if c.MASToken.RefreshToken != "" { - err = c.masKeycloakClient.Logout(ctx, c.clientID, "", c.masRealm, c.MASToken.RefreshToken) - if err != nil { - return &AuthError{err} - } - } - - c.Token.AccessToken = "" - c.Token.RefreshToken = "" - c.MASToken.AccessToken = "" - c.MASToken.RefreshToken = "" - - cfg, err := c.Config.Load() - if err != nil { - return err - } - - cfg.AccessToken = "" - cfg.RefreshToken = "" - cfg.MasAccessToken = "" - cfg.MasRefreshToken = "" - - return c.Config.Save(cfg) -} - -// API Creates a new API type which is a single type for multiple APIs -// nolint:funlen -func (c *KeycloakConnection) API() *api.API { - amsAPIFunc := func() amsclient.DefaultApi { - amsAPIClient := c.createAmsAPIClient() - - return amsAPIClient.DefaultApi - } - - kafkaAPIFunc := func() kafkamgmtclient.DefaultApi { - // create the client - kafkaAPIClient := c.createKafkaAPIClient() - - return kafkaAPIClient.DefaultApi - } - - serviceAccountAPIFunc := func() kafkamgmtclient.SecurityApi { - apiClient := c.createKafkaAPIClient() - - return apiClient.SecurityApi - } - - registryAPIFunc := func() registrymgmtclient.RegistriesApi { - srsAPIClient := c.createServiceRegistryAPIClient() - - return srsAPIClient.RegistriesApi - } - - rbacAPI := rbac.RbacAPI{ - PrincipalAPI: func() rbac.PrincipalAPI { - cl := c.createOAuthTransport(c.Token.AccessToken) - cfg := rbac.Config{ - HTTPClient: cl, - Debug: c.logger.DebugEnabled(), - BaseURL: c.consoleURL, - } - return rbac.NewPrincipalAPIClient(&cfg) - }, - } - - kafkaAdminAPIFunc := func(kafkaID string) (*kafkainstanceclient.APIClient, *kafkamgmtclient.KafkaRequest, error) { - kafkaAPI := kafkaAPIFunc() - - kafkaInstance, resp, err := kafkaAPI.GetKafkaById(context.Background(), kafkaID).Execute() - defer resp.Body.Close() - if kas.IsErr(err, kas.ErrorCode7) { - return nil, nil, kafkaerr.NotFoundByIDError(kafkaID) - } else if err != nil { - return nil, nil, fmt.Errorf("%w", err) - } - - kafkaStatus := kafkaInstance.GetStatus() - - switch kafkaStatus { - case svcstatus.StatusProvisioning, svcstatus.StatusAccepted: - err = fmt.Errorf(`Kafka instance "%v" is not ready yet`, kafkaInstance.GetName()) - return nil, nil, err - case svcstatus.StatusFailed: - err = fmt.Errorf(`Kafka instance "%v" has failed`, kafkaInstance.GetName()) - return nil, nil, err - case svcstatus.StatusDeprovision: - err = fmt.Errorf(`Kafka instance "%v" is being deprovisioned`, kafkaInstance.GetName()) - return nil, nil, err - case svcstatus.StatusDeleting: - err = fmt.Errorf(`Kafka instance "%v" is being deleted`, kafkaInstance.GetName()) - return nil, nil, err - } - - bootstrapURL := kafkaInstance.GetBootstrapServerHost() - if bootstrapURL == "" { - err = fmt.Errorf(`bootstrap URL is missing for Kafka instance "%v"`, kafkaInstance.GetName()) - - return nil, nil, err - } - - // create the client - client := c.createKafkaAdminAPI(bootstrapURL) - - return client, &kafkaInstance, nil - } - - registryInstanceAPIFunc := func(registryID string) (*registryinstanceclient.APIClient, *registrymgmtclient.Registry, error) { - registryAPI := registryAPIFunc() - - instance, resp, err := registryAPI.GetRegistry(context.Background(), registryID).Execute() - defer resp.Body.Close() - if err != nil { - return nil, nil, fmt.Errorf("%w", err) - } - - status := svcstatus.ServiceStatus(instance.GetStatus()) - // nolint - switch status { - case svcstatus.StatusProvisioning, svcstatus.StatusAccepted: - err = fmt.Errorf(`service registry instance "%v" is not ready yet`, instance.GetName()) - return nil, nil, err - case svcstatus.StatusFailed: - err = fmt.Errorf(`service registry instance "%v" has failed`, instance.GetName()) - return nil, nil, err - case svcstatus.StatusDeprovision: - err = fmt.Errorf(`service registry instance "%v" is being deprovisioned`, instance.GetName()) - return nil, nil, err - case svcstatus.StatusDeleting: - err = fmt.Errorf(`service registry instance "%v" is being deleted`, instance.GetName()) - return nil, nil, err - } - - registryUrl := instance.GetRegistryUrl() - if registryUrl == "" { - err = fmt.Errorf(`URL is missing for Service Registry instance "%v"`, instance.GetName()) - - return nil, nil, err - } - - // create the client - client := c.createServiceRegistryInstanceAPI(registryUrl) - - return client, &instance, nil - } - - return &api.API{ - Kafka: kafkaAPIFunc, - ServiceAccount: serviceAccountAPIFunc, - KafkaAdmin: kafkaAdminAPIFunc, - ServiceRegistryInstance: registryInstanceAPIFunc, - AccountMgmt: amsAPIFunc, - ServiceRegistryMgmt: registryAPIFunc, - RBAC: rbacAPI, - } -} - -// Create a new Kafka API client -func (c *KeycloakConnection) createKafkaAPIClient() *kafkamgmtclient.APIClient { - tc := c.createOAuthTransport(c.Token.AccessToken) - client := kafkamgmt.NewAPIClient(&kafkamgmt.Config{ - BaseURL: c.apiURL.String(), - Debug: c.logger.DebugEnabled(), - HTTPClient: tc, - UserAgent: build.DefaultUserAgentPrefix + build.Version, - }) - - return client -} - -// Create a new Registry API client -func (c *KeycloakConnection) createServiceRegistryAPIClient() *registrymgmtclient.APIClient { - tc := c.createOAuthTransport(c.Token.AccessToken) - client := registrymgmt.NewAPIClient(®istrymgmt.Config{ - BaseURL: c.apiURL.String(), - Debug: c.logger.DebugEnabled(), - HTTPClient: tc, - UserAgent: build.DefaultUserAgentPrefix + build.Version, - }) - - return client -} - -// Create a new KafkaAdmin API client -func (c *KeycloakConnection) createKafkaAdminAPI(bootstrapURL string) *kafkainstanceclient.APIClient { - host, port, _ := net.SplitHostPort(bootstrapURL) - - var apiURL *url.URL - - if host == "localhost" { - apiURL = &url.URL{ - Scheme: "http", - Host: fmt.Sprintf("localhost:%v", port), - } - apiURL.Scheme = "http" - apiURL.Path = "/data/kafka" - } else { - apiHost := fmt.Sprintf("admin-server-%v", host) - apiURL, _ = url.Parse(apiHost) - apiURL.Scheme = "https" - apiURL.Path = "/rest" - apiURL.Host = fmt.Sprintf("admin-server-%v", host) - } - - c.logger.Debugf("Making request to %v", apiURL.String()) - - client := kafkainstance.NewAPIClient(&kafkainstance.Config{ - BaseURL: apiURL.String(), - Debug: c.logger.DebugEnabled(), - HTTPClient: c.createOAuthTransport(c.MASToken.AccessToken), - UserAgent: build.DefaultUserAgentPrefix + build.Version, - }) - - return client -} - -// Create a new RegistryInstance API client -func (c *KeycloakConnection) createServiceRegistryInstanceAPI(registryUrl string) *registryinstanceclient.APIClient { - host, port, _ := net.SplitHostPort(registryUrl) - - var baseURL string - if host == "localhost" { - var apiURL = &url.URL{ - Scheme: "http", - Host: fmt.Sprintf("localhost:%v", port), - } - apiURL.Scheme = "http" - apiURL.Path = "/data/registry" - baseURL = apiURL.String() - } else { - baseURL = registryUrl + "/apis/registry/v2" - } - - c.logger.Debugf("Making request to %v", baseURL) - - client := registryinstance.NewAPIClient(®istryinstance.Config{ - BaseURL: baseURL, - Debug: c.logger.DebugEnabled(), - HTTPClient: c.createOAuthTransport(c.MASToken.AccessToken), - UserAgent: build.DefaultUserAgentPrefix + build.Version, - }) - - return client -} - -func (c *KeycloakConnection) createAmsAPIClient() *amsclient.APIClient { - cfg := amsclient.NewConfiguration() - - cfg.Scheme = c.apiURL.Scheme - cfg.Host = c.apiURL.Host - cfg.UserAgent = build.DefaultUserAgentPrefix + build.Version - - cfg.HTTPClient = c.createOAuthTransport(c.Token.AccessToken) - - apiClient := amsclient.NewAPIClient(cfg) - - return apiClient -} - -// wraps the HTTP client with an OAuth2 Transport layer to provide automatic token refreshing -func (c *KeycloakConnection) createOAuthTransport(accessToken string) *http.Client { - ts := oauth2.StaticTokenSource( - &oauth2.Token{ - AccessToken: accessToken, - }, - ) - - return &http.Client{ - Transport: &oauth2.Transport{ - Base: c.defaultHTTPClient.Transport, - Source: oauth2.ReuseTokenSource(nil, ts), - }, - } -} diff --git a/pkg/cluster/bind.go b/pkg/core/cluster/bind.go similarity index 93% rename from pkg/cluster/bind.go rename to pkg/core/cluster/bind.go index bd4ab0a80..7149cdf32 100644 --- a/pkg/cluster/bind.go +++ b/pkg/core/cluster/bind.go @@ -4,15 +4,16 @@ import ( "crypto/rand" "fmt" - "github.com/redhat-developer/app-services-cli/pkg/cluster/constants" - "github.com/redhat-developer/app-services-cli/pkg/cluster/kubeclient" - "github.com/redhat-developer/app-services-cli/pkg/cluster/v1alpha" - "github.com/redhat-developer/app-services-cli/pkg/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/constants" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/kubeclient" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/v1alpha" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/color" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + bindv1alpha1 "github.com/redhat-developer/service-binding-operator/apis/binding/v1alpha1" "github.com/AlecAivazis/survey/v2" - "github.com/redhat-developer/app-services-cli/pkg/color" - "github.com/redhat-developer/app-services-cli/pkg/localize" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/runtime" diff --git a/pkg/cluster/clean.go b/pkg/core/cluster/clean.go similarity index 86% rename from pkg/cluster/clean.go rename to pkg/core/cluster/clean.go index a3b371ce2..aba794e00 100644 --- a/pkg/cluster/clean.go +++ b/pkg/core/cluster/clean.go @@ -2,11 +2,11 @@ package cluster import ( "github.com/AlecAivazis/survey/v2" - "github.com/redhat-developer/app-services-cli/pkg/cluster/constants" - "github.com/redhat-developer/app-services-cli/pkg/cluster/services/resources" - "github.com/redhat-developer/app-services-cli/pkg/cluster/v1alpha" - "github.com/redhat-developer/app-services-cli/pkg/icon" - "github.com/redhat-developer/app-services-cli/pkg/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/constants" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/services/resources" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/v1alpha" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" "k8s.io/apimachinery/pkg/api/errors" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/fields" diff --git a/pkg/cluster/cluster.go b/pkg/core/cluster/cluster.go similarity index 98% rename from pkg/cluster/cluster.go rename to pkg/core/cluster/cluster.go index 557914d68..2451be3d0 100644 --- a/pkg/cluster/cluster.go +++ b/pkg/core/cluster/cluster.go @@ -3,7 +3,7 @@ // // Structure: // -// v1alpha - end user api +// v1alpha - end user API // kubeclient - provides kubernetes clients // service - individual service implementations // diff --git a/pkg/cluster/cluster_api.go b/pkg/core/cluster/cluster_api.go similarity index 81% rename from pkg/cluster/cluster_api.go rename to pkg/core/cluster/cluster_api.go index 9656c0789..b213ed321 100644 --- a/pkg/cluster/cluster_api.go +++ b/pkg/core/cluster/cluster_api.go @@ -2,10 +2,10 @@ package cluster import ( "github.com/AlecAivazis/survey/v2" - "github.com/redhat-developer/app-services-cli/pkg/cluster/kubeclient" - "github.com/redhat-developer/app-services-cli/pkg/cluster/services" - "github.com/redhat-developer/app-services-cli/pkg/cluster/services/resources" - "github.com/redhat-developer/app-services-cli/pkg/cluster/v1alpha" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/kubeclient" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/services" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/services/resources" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/v1alpha" ) // KubernetesClusterAPIImpl implements KubernetesClusterAPI diff --git a/pkg/cluster/connect.go b/pkg/core/cluster/connect.go similarity index 94% rename from pkg/cluster/connect.go rename to pkg/core/cluster/connect.go index 48d774ded..b556aa01a 100644 --- a/pkg/cluster/connect.go +++ b/pkg/core/cluster/connect.go @@ -6,17 +6,17 @@ import ( "fmt" "time" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/constants" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/kubeclient" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/services" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/v1alpha" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/color" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/icon" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/AlecAivazis/survey/v2" "github.com/golang-jwt/jwt/v4" "github.com/redhat-developer/app-services-cli/internal/build" - "github.com/redhat-developer/app-services-cli/pkg/cluster/constants" - "github.com/redhat-developer/app-services-cli/pkg/cluster/kubeclient" - "github.com/redhat-developer/app-services-cli/pkg/cluster/services" - "github.com/redhat-developer/app-services-cli/pkg/cluster/v1alpha" - "github.com/redhat-developer/app-services-cli/pkg/color" - "github.com/redhat-developer/app-services-cli/pkg/icon" - "github.com/redhat-developer/app-services-cli/pkg/localize" - kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" apiv1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -231,7 +231,7 @@ func (c *KubernetesClusterAPIImpl) createServiceAccount(ctx context.Context, cli api := cliOpts.Connection.API() serviceAcct := &kafkamgmtclient.ServiceAccountRequest{Name: fmt.Sprintf("rhoascli-%v", t.Unix())} - req := api.ServiceAccount().CreateServiceAccount(ctx) + req := api.ServiceAccountMgmt().CreateServiceAccount(ctx) req = req.ServiceAccountRequest(*serviceAcct) serviceAcctRes, httpRes, err := req.Execute() if httpRes != nil { diff --git a/pkg/cluster/constants/constants.go b/pkg/core/cluster/constants/constants.go similarity index 100% rename from pkg/cluster/constants/constants.go rename to pkg/core/cluster/constants/constants.go diff --git a/pkg/cluster/kubeclient/kube_helpers.go b/pkg/core/cluster/kubeclient/kube_helpers.go similarity index 92% rename from pkg/cluster/kubeclient/kube_helpers.go rename to pkg/core/cluster/kubeclient/kube_helpers.go index 007dfbed0..3acfba1d2 100644 --- a/pkg/cluster/kubeclient/kube_helpers.go +++ b/pkg/core/cluster/kubeclient/kube_helpers.go @@ -2,8 +2,8 @@ package kubeclient import ( "fmt" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/v1alpha" - "github.com/redhat-developer/app-services-cli/pkg/cluster/v1alpha" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/runtime/schema" ) diff --git a/pkg/cluster/kubeclient/kubeclients.go b/pkg/core/cluster/kubeclient/kubeclients.go similarity index 97% rename from pkg/cluster/kubeclient/kubeclients.go rename to pkg/core/cluster/kubeclient/kubeclients.go index f3a65bb33..6c1463b76 100644 --- a/pkg/cluster/kubeclient/kubeclients.go +++ b/pkg/core/cluster/kubeclient/kubeclients.go @@ -2,10 +2,10 @@ package kubeclient import ( "fmt" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/v1alpha" "os" "path/filepath" - "github.com/redhat-developer/app-services-cli/pkg/cluster/v1alpha" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime/schema" diff --git a/pkg/cluster/services/custom_connection.go b/pkg/core/cluster/services/custom_connection.go similarity index 100% rename from pkg/cluster/services/custom_connection.go rename to pkg/core/cluster/services/custom_connection.go diff --git a/pkg/cluster/services/kafka.go b/pkg/core/cluster/services/kafka.go similarity index 73% rename from pkg/cluster/services/kafka.go rename to pkg/core/cluster/services/kafka.go index b8eed5477..7ae06b146 100644 --- a/pkg/cluster/services/kafka.go +++ b/pkg/core/cluster/services/kafka.go @@ -1,12 +1,12 @@ package services import ( - "github.com/redhat-developer/app-services-cli/pkg/cluster/constants" - "github.com/redhat-developer/app-services-cli/pkg/cluster/kubeclient" - "github.com/redhat-developer/app-services-cli/pkg/cluster/services/resources" - "github.com/redhat-developer/app-services-cli/pkg/cluster/v1alpha" - "github.com/redhat-developer/app-services-cli/pkg/kafka" - "github.com/redhat-developer/app-services-cli/pkg/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/constants" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/kubeclient" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/services/resources" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/v1alpha" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/kafkautil" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -29,7 +29,7 @@ func (s KafkaService) BuildServiceDetails(serviceName string, namespace string, if serviceName == "" { if cfg.Services.Kafka == nil || ignoreContext { // nolint - selectedService, err := kafka.InteractiveSelect(cliOpts.Context, cliOpts.Connection, cliOpts.Logger, cliOpts.Localizer) + selectedService, err := kafkautil.InteractiveSelect(cliOpts.Context, cliOpts.Connection, cliOpts.Logger, cliOpts.Localizer) if err != nil { return nil, err } @@ -40,14 +40,14 @@ func (s KafkaService) BuildServiceDetails(serviceName string, namespace string, serviceName = selectedService.GetName() } else { serviceId = cfg.Services.Kafka.ClusterID - selectedService, _, err := kafka.GetKafkaByID(cliOpts.Context, api.Kafka(), serviceId) + selectedService, _, err := kafkautil.GetKafkaByID(cliOpts.Context, api.KafkaMgmt(), serviceId) if err != nil { return nil, err } serviceName = selectedService.GetName() } } else { - selectedService, _, err := kafka.GetKafkaByName(cliOpts.Context, api.Kafka(), serviceName) + selectedService, _, err := kafkautil.GetKafkaByName(cliOpts.Context, api.KafkaMgmt(), serviceName) if err != nil { return nil, err } diff --git a/pkg/cluster/services/resources/KafkaConnection.go b/pkg/core/cluster/services/resources/KafkaConnection.go similarity index 100% rename from pkg/cluster/services/resources/KafkaConnection.go rename to pkg/core/cluster/services/resources/KafkaConnection.go diff --git a/pkg/cluster/services/resources/ServiceRegistryConnection.go b/pkg/core/cluster/services/resources/ServiceRegistryConnection.go similarity index 100% rename from pkg/cluster/services/resources/ServiceRegistryConnection.go rename to pkg/core/cluster/services/resources/ServiceRegistryConnection.go diff --git a/pkg/cluster/services/resources/definitions.go b/pkg/core/cluster/services/resources/definitions.go similarity index 92% rename from pkg/cluster/services/resources/definitions.go rename to pkg/core/cluster/services/resources/definitions.go index f1703875e..271992f13 100644 --- a/pkg/cluster/services/resources/definitions.go +++ b/pkg/core/cluster/services/resources/definitions.go @@ -45,7 +45,7 @@ const KafkaServiceName = "kafka" var AllServiceLabels = []string{KafkaServiceName, ServiceRegistryServiceName} // All services defined as resources -var AllResources []schema.GroupVersionResource = []schema.GroupVersionResource{ +var AllResources = []schema.GroupVersionResource{ AKCResource, SRCResource, } diff --git a/pkg/cluster/services/service-registry.go b/pkg/core/cluster/services/service-registry.go similarity index 76% rename from pkg/cluster/services/service-registry.go rename to pkg/core/cluster/services/service-registry.go index 5464b1a7c..41932a348 100644 --- a/pkg/cluster/services/service-registry.go +++ b/pkg/core/cluster/services/service-registry.go @@ -1,12 +1,12 @@ package services import ( - "github.com/redhat-developer/app-services-cli/pkg/cluster/constants" - "github.com/redhat-developer/app-services-cli/pkg/cluster/kubeclient" - "github.com/redhat-developer/app-services-cli/pkg/cluster/services/resources" - "github.com/redhat-developer/app-services-cli/pkg/cluster/v1alpha" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/constants" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/kubeclient" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/services/resources" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/v1alpha" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -29,7 +29,7 @@ func (s RegistryService) BuildServiceDetails(serviceName string, namespace strin if serviceName == "" { if cfg.Services.ServiceRegistry == nil || ignoreContext { // nolint - selectedService, err := serviceregistry.InteractiveSelect(cliOpts.Context, cliOpts.Connection, cliOpts.Logger) + selectedService, err := serviceregistryutil.InteractiveSelect(cliOpts.Context, cliOpts.Connection, cliOpts.Logger) if err != nil { return nil, err } @@ -40,7 +40,7 @@ func (s RegistryService) BuildServiceDetails(serviceName string, namespace strin serviceName = selectedService.GetName() } else { serviceId = cfg.Services.ServiceRegistry.InstanceID - selectedService, _, err := serviceregistry.GetServiceRegistryByID( + selectedService, _, err := serviceregistryutil.GetServiceRegistryByID( cliOpts.Context, api.ServiceRegistryMgmt(), serviceId) if err != nil { return nil, err @@ -48,7 +48,7 @@ func (s RegistryService) BuildServiceDetails(serviceName string, namespace strin serviceName = selectedService.GetName() } } else { - selectedService, _, err := serviceregistry.GetServiceRegistryByName(cliOpts.Context, api.ServiceRegistryMgmt(), serviceName) + selectedService, _, err := serviceregistryutil.GetServiceRegistryByName(cliOpts.Context, api.ServiceRegistryMgmt(), serviceName) if err != nil { return nil, err } diff --git a/pkg/cluster/status.go b/pkg/core/cluster/status.go similarity index 90% rename from pkg/cluster/status.go rename to pkg/core/cluster/status.go index dd0ea3698..b2ee1e116 100644 --- a/pkg/cluster/status.go +++ b/pkg/core/cluster/status.go @@ -1,8 +1,8 @@ package cluster import ( - "github.com/redhat-developer/app-services-cli/pkg/cluster/services/resources" - "github.com/redhat-developer/app-services-cli/pkg/cluster/v1alpha" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/services/resources" + "github.com/redhat-developer/app-services-cli/pkg/core/cluster/v1alpha" bindv1alpha1 "github.com/redhat-developer/service-binding-operator/apis/binding/v1alpha1" ) diff --git a/pkg/cluster/v1alpha/cluster.go b/pkg/core/cluster/v1alpha/cluster.go similarity index 82% rename from pkg/cluster/v1alpha/cluster.go rename to pkg/core/cluster/v1alpha/cluster.go index cc69a543f..0a7ab4584 100644 --- a/pkg/cluster/v1alpha/cluster.go +++ b/pkg/core/cluster/v1alpha/cluster.go @@ -2,12 +2,11 @@ package v1alpha import ( "context" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" ) // CommandEnvironment provides number of abstractions provided by CLI diff --git a/pkg/browser/open.go b/pkg/core/cmdutil/browser/open.go similarity index 100% rename from pkg/browser/open.go rename to pkg/core/cmdutil/browser/open.go diff --git a/pkg/cmdutil/cmdutil.go b/pkg/core/cmdutil/cmdutil.go similarity index 100% rename from pkg/cmdutil/cmdutil.go rename to pkg/core/cmdutil/cmdutil.go diff --git a/pkg/cmdutil/constants.go b/pkg/core/cmdutil/constants.go similarity index 100% rename from pkg/cmdutil/constants.go rename to pkg/core/cmdutil/constants.go diff --git a/pkg/cmd/factory/default.go b/pkg/core/cmdutil/factory/defaultfactory/default.go similarity index 75% rename from pkg/cmd/factory/default.go rename to pkg/core/cmdutil/factory/defaultfactory/default.go index a10a6f041..d705ea734 100644 --- a/pkg/cmd/factory/default.go +++ b/pkg/core/cmdutil/factory/defaultfactory/default.go @@ -1,16 +1,19 @@ -package factory +package defaultfactory import ( "context" "net/http" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/connection/kcconnection" + "github.com/redhat-developer/app-services-cli/pkg/core/httputil" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/internal/build" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/httputil" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" ) // New creates a new command factory @@ -18,7 +21,7 @@ import ( // giving centralized access to the config and API connection // nolint:funlen -func New(localizer localize.Localizer) *Factory { +func New(localizer localize.Localizer) *factory.Factory { io := iostreams.System() var logger logging.Logger @@ -41,7 +44,7 @@ func New(localizer localize.Localizer) *Factory { return nil, err } - builder := connection.NewBuilder() + builder := kcconnection.NewConnectionBuilder() if cfg.AccessToken != "" { builder.WithAccessToken(cfg.AccessToken) @@ -104,7 +107,7 @@ func New(localizer localize.Localizer) *Factory { return conn, nil } - return &Factory{ + return &factory.Factory{ IOStreams: io, Config: cfgFile, Connection: connectionFunc, diff --git a/pkg/cmd/factory/factory.go b/pkg/core/cmdutil/factory/factory.go similarity index 67% rename from pkg/cmd/factory/factory.go rename to pkg/core/cmdutil/factory/factory.go index aff0c11f3..ab5403dfd 100644 --- a/pkg/cmd/factory/factory.go +++ b/pkg/core/cmdutil/factory/factory.go @@ -2,11 +2,11 @@ package factory import ( "context" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" ) // Factory is an abstract type which provides access to diff --git a/pkg/arguments/arguments.go b/pkg/core/cmdutil/flagutil/arguments.go similarity index 94% rename from pkg/arguments/arguments.go rename to pkg/core/cmdutil/flagutil/arguments.go index 461a34a8a..5c4bd68a8 100644 --- a/pkg/arguments/arguments.go +++ b/pkg/core/cmdutil/flagutil/arguments.go @@ -1,5 +1,5 @@ // This file contains functions that add common arguments to the command line -package arguments +package flagutil import ( "github.com/redhat-developer/app-services-cli/pkg/cmd/debug" diff --git a/pkg/cmdutil/flagutil/completions.go b/pkg/core/cmdutil/flagutil/completions.go similarity index 88% rename from pkg/cmdutil/flagutil/completions.go rename to pkg/core/cmdutil/flagutil/completions.go index fe1171a49..4bd6b63aa 100644 --- a/pkg/cmdutil/flagutil/completions.go +++ b/pkg/core/cmdutil/flagutil/completions.go @@ -2,12 +2,12 @@ package flagutil import ( "context" + kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafkautil" - "github.com/redhat-developer/app-services-cli/pkg/api/rbac" - "github.com/redhat-developer/app-services-cli/pkg/api/rbac/rbacutil" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/connection" - kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafka/cmdutil" + "github.com/redhat-developer/app-services-cli/pkg/apis/rbac" + "github.com/redhat-developer/app-services-cli/pkg/apis/rbac/rbacutil" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" "github.com/spf13/cobra" ) @@ -41,7 +41,7 @@ func RegisterUserCompletionFunc(cmd *cobra.Command, flagName string, f *factory. } queryParams := []rbac.QueryParam{rbac.WithQueryParam("match_criteria", "partial"), rbac.WithQueryParam("usernames", toComplete)} - principals, err := rbacutil.FetchAllUsers(context.Background(), conn.API().RBAC.PrincipalAPI, queryParams...) + principals, err := rbacutil.FetchAllUsers(context.Background(), conn.API().RBAC().PrincipalAPI, queryParams...) if err != nil || len(principals) == 0 { return usernames, directive } @@ -71,7 +71,7 @@ func RegisterServiceAccountCompletionFunc(cmd *cobra.Command, f *factory.Factory return cachedServiceAccounts, directive } - serviceAccountResults, _, err := conn.API().ServiceAccount().GetServiceAccounts(cmd.Context()).Execute() + serviceAccountResults, _, err := conn.API().ServiceAccountMgmt().GetServiceAccounts(cmd.Context()).Execute() if err != nil || len(serviceAccountResults.GetItems()) == 0 { return emptyList, directive } diff --git a/pkg/cmd/flag/flag.go b/pkg/core/cmdutil/flagutil/flag.go similarity index 98% rename from pkg/cmd/flag/flag.go rename to pkg/core/cmdutil/flagutil/flag.go index 165b1d17b..6e22fc4b8 100644 --- a/pkg/cmd/flag/flag.go +++ b/pkg/core/cmdutil/flagutil/flag.go @@ -1,4 +1,4 @@ -package flag +package flagutil import ( "fmt" diff --git a/pkg/cmdutil/flagutil/flagset.go b/pkg/core/cmdutil/flagutil/flagset.go similarity index 93% rename from pkg/cmdutil/flagutil/flagset.go rename to pkg/core/cmdutil/flagutil/flagset.go index 9e867b41b..86de09b58 100644 --- a/pkg/cmdutil/flagutil/flagset.go +++ b/pkg/core/cmdutil/flagutil/flagset.go @@ -3,10 +3,10 @@ package flagutil import ( "github.com/redhat-developer/app-services-cli/internal/build" - "github.com/redhat-developer/app-services-cli/pkg/cmdutil" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/serviceaccount/credentials" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/serviceaccountutil/credentials" "github.com/spf13/cobra" "github.com/spf13/pflag" ) diff --git a/pkg/cmdutil/flagutil/tribool.go b/pkg/core/cmdutil/flagutil/tribool.go similarity index 100% rename from pkg/cmdutil/flagutil/tribool.go rename to pkg/core/cmdutil/flagutil/tribool.go diff --git a/pkg/cmdutil/flagutil/util.go b/pkg/core/cmdutil/flagutil/util.go similarity index 93% rename from pkg/cmdutil/flagutil/util.go rename to pkg/core/cmdutil/flagutil/util.go index ffdd037d7..613c11aa5 100644 --- a/pkg/cmdutil/flagutil/util.go +++ b/pkg/core/cmdutil/flagutil/util.go @@ -2,9 +2,8 @@ package flagutil import ( "fmt" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" "sort" - - "github.com/redhat-developer/app-services-cli/pkg/localize" ) // IsValidInput checks if the input value is in the range of valid values diff --git a/pkg/core/cmdutil/flagutil/validation.go b/pkg/core/cmdutil/flagutil/validation.go new file mode 100644 index 000000000..f92a53dba --- /dev/null +++ b/pkg/core/cmdutil/flagutil/validation.go @@ -0,0 +1,12 @@ +package flagutil + +// ValidateOutput checks if value v is a valid value for --output +func ValidateOutput(v string) error { + isValid := IsValidInput(v, ValidOutputFormats...) + + if isValid { + return nil + } + + return InvalidValueError("output", v, ValidOutputFormats...) +} diff --git a/pkg/profile/profile.go b/pkg/core/cmdutil/profile/profile.go similarity index 100% rename from pkg/profile/profile.go rename to pkg/core/cmdutil/profile/profile.go diff --git a/internal/config/config_mock.go b/pkg/core/config/config_mock.go similarity index 75% rename from internal/config/config_mock.go rename to pkg/core/config/config_mock.go index dd06fac4a..3855ace10 100644 --- a/internal/config/config_mock.go +++ b/pkg/core/config/config_mock.go @@ -13,28 +13,28 @@ var _ IConfig = &IConfigMock{} // IConfigMock is a mock implementation of IConfig. // -// func TestSomethingThatUsesIConfig(t *testing.T) { +// func TestSomethingThatUsesIConfig(t *testing.T) { // -// // make and configure a mocked IConfig -// mockedIConfig := &IConfigMock{ -// LoadFunc: func() (*Config, error) { -// panic("mock out the Load method") -// }, -// LocationFunc: func() (string, error) { -// panic("mock out the Location method") -// }, -// RemoveFunc: func() error { -// panic("mock out the Remove method") -// }, -// SaveFunc: func(config *Config) error { -// panic("mock out the Save method") -// }, -// } +// // make and configure a mocked IConfig +// mockedIConfig := &IConfigMock{ +// LoadFunc: func() (*Config, error) { +// panic("mock out the Load method") +// }, +// LocationFunc: func() (string, error) { +// panic("mock out the Location method") +// }, +// RemoveFunc: func() error { +// panic("mock out the Remove method") +// }, +// SaveFunc: func(config *Config) error { +// panic("mock out the Save method") +// }, +// } // -// // use mockedIConfig in code that requires IConfig -// // and then make assertions. +// // use mockedIConfig in code that requires IConfig +// // and then make assertions. // -// } +// } type IConfigMock struct { // LoadFunc mocks the Load method. LoadFunc func() (*Config, error) @@ -51,11 +51,14 @@ type IConfigMock struct { // calls tracks calls to the methods. calls struct { // Load holds details about calls to the Load method. - Load []struct{} + Load []struct { + } // Location holds details about calls to the Location method. - Location []struct{} + Location []struct { + } // Remove holds details about calls to the Remove method. - Remove []struct{} + Remove []struct { + } // Save holds details about calls to the Save method. Save []struct { // Config is the config argument value. @@ -73,7 +76,8 @@ func (mock *IConfigMock) Load() (*Config, error) { if mock.LoadFunc == nil { panic("IConfigMock.LoadFunc: method is nil but IConfig.Load was just called") } - callInfo := struct{}{} + callInfo := struct { + }{} mock.lockLoad.Lock() mock.calls.Load = append(mock.calls.Load, callInfo) mock.lockLoad.Unlock() @@ -83,8 +87,10 @@ func (mock *IConfigMock) Load() (*Config, error) { // LoadCalls gets all the calls that were made to Load. // Check the length with: // len(mockedIConfig.LoadCalls()) -func (mock *IConfigMock) LoadCalls() []struct{} { - var calls []struct{} +func (mock *IConfigMock) LoadCalls() []struct { +} { + var calls []struct { + } mock.lockLoad.RLock() calls = mock.calls.Load mock.lockLoad.RUnlock() @@ -96,7 +102,8 @@ func (mock *IConfigMock) Location() (string, error) { if mock.LocationFunc == nil { panic("IConfigMock.LocationFunc: method is nil but IConfig.Location was just called") } - callInfo := struct{}{} + callInfo := struct { + }{} mock.lockLocation.Lock() mock.calls.Location = append(mock.calls.Location, callInfo) mock.lockLocation.Unlock() @@ -106,8 +113,10 @@ func (mock *IConfigMock) Location() (string, error) { // LocationCalls gets all the calls that were made to Location. // Check the length with: // len(mockedIConfig.LocationCalls()) -func (mock *IConfigMock) LocationCalls() []struct{} { - var calls []struct{} +func (mock *IConfigMock) LocationCalls() []struct { +} { + var calls []struct { + } mock.lockLocation.RLock() calls = mock.calls.Location mock.lockLocation.RUnlock() @@ -119,7 +128,8 @@ func (mock *IConfigMock) Remove() error { if mock.RemoveFunc == nil { panic("IConfigMock.RemoveFunc: method is nil but IConfig.Remove was just called") } - callInfo := struct{}{} + callInfo := struct { + }{} mock.lockRemove.Lock() mock.calls.Remove = append(mock.calls.Remove, callInfo) mock.lockRemove.Unlock() @@ -129,8 +139,10 @@ func (mock *IConfigMock) Remove() error { // RemoveCalls gets all the calls that were made to Remove. // Check the length with: // len(mockedIConfig.RemoveCalls()) -func (mock *IConfigMock) RemoveCalls() []struct{} { - var calls []struct{} +func (mock *IConfigMock) RemoveCalls() []struct { +} { + var calls []struct { + } mock.lockRemove.RLock() calls = mock.calls.Remove mock.lockRemove.RUnlock() diff --git a/internal/config/file.go b/pkg/core/config/file.go similarity index 100% rename from internal/config/file.go rename to pkg/core/config/file.go diff --git a/internal/config/type.go b/pkg/core/config/type.go similarity index 100% rename from internal/config/type.go rename to pkg/core/config/type.go diff --git a/pkg/core/connection/api/api.go b/pkg/core/connection/api/api.go new file mode 100644 index 000000000..56baac10d --- /dev/null +++ b/pkg/core/connection/api/api.go @@ -0,0 +1,20 @@ +package api + +import ( + "github.com/redhat-developer/app-services-cli/pkg/apis/ams/amsclient" + "github.com/redhat-developer/app-services-cli/pkg/apis/rbac" + kafkainstanceclient "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal/client" + kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" + registryinstanceclient "github.com/redhat-developer/app-services-sdk-go/registryinstance/apiv1internal/client" + registrymgmtclient "github.com/redhat-developer/app-services-sdk-go/registrymgmt/apiv1/client" +) + +type API interface { + KafkaMgmt() kafkamgmtclient.DefaultApi + ServiceRegistryMgmt() registrymgmtclient.RegistriesApi + ServiceAccountMgmt() kafkamgmtclient.SecurityApi + KafkaAdmin(instanceID string) (*kafkainstanceclient.APIClient, *kafkamgmtclient.KafkaRequest, error) + ServiceRegistryInstance(instanceID string) (*registryinstanceclient.APIClient, *registrymgmtclient.Registry, error) + AccountMgmt() amsclient.DefaultApi + RBAC() rbac.RbacAPI +} diff --git a/pkg/core/connection/api/defaultapi/default_client.go b/pkg/core/connection/api/defaultapi/default_client.go new file mode 100644 index 000000000..ed25017f6 --- /dev/null +++ b/pkg/core/connection/api/defaultapi/default_client.go @@ -0,0 +1,278 @@ +package defaultapi + +import ( + "context" + "fmt" + "net" + "net/http" + "net/url" + + kafkamgmt "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1" + + "github.com/redhat-developer/app-services-cli/pkg/kafkautil" + + "github.com/redhat-developer/app-services-cli/internal/build" + "github.com/redhat-developer/app-services-cli/pkg/apis/ams/amsclient" + "github.com/redhat-developer/app-services-cli/pkg/apis/rbac" + "github.com/redhat-developer/app-services-cli/pkg/core/connection/api" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + svcstatus "github.com/redhat-developer/app-services-cli/pkg/core/status" + kafkainstance "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal" + kafkainstanceclient "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal/client" + kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" + registryinstance "github.com/redhat-developer/app-services-sdk-go/registryinstance/apiv1internal" + registryinstanceclient "github.com/redhat-developer/app-services-sdk-go/registryinstance/apiv1internal/client" + registrymgmt "github.com/redhat-developer/app-services-sdk-go/registrymgmt/apiv1" + registrymgmtclient "github.com/redhat-developer/app-services-sdk-go/registrymgmt/apiv1/client" + "golang.org/x/oauth2" +) + +// defaultAPI is a type which defines a number of API creator functions +type defaultAPI struct { + AccessToken string + MasAccessToken string + ApiURL *url.URL + ConsoleURL *url.URL + UserAgent string + HTTPClient *http.Client + Logger logging.Logger +} + +type Config struct { + AccessToken string + MasAccessToken string + ApiURL *url.URL + ConsoleURL *url.URL + UserAgent string + HTTPClient *http.Client + Logger logging.Logger +} + +// New creates a new default API client wrapper +func New(cfg *Config) api.API { + return &defaultAPI{ + AccessToken: cfg.AccessToken, + MasAccessToken: cfg.MasAccessToken, + ApiURL: cfg.ApiURL, + ConsoleURL: cfg.ConsoleURL, + UserAgent: cfg.UserAgent, + HTTPClient: cfg.HTTPClient, + Logger: cfg.Logger, + } +} + +// KafkaMgmt returns a new Kafka Management API client instance +func (a *defaultAPI) KafkaMgmt() kafkamgmtclient.DefaultApi { + tc := a.createOAuthTransport(a.AccessToken) + client := kafkamgmt.NewAPIClient(&kafkamgmt.Config{ + BaseURL: a.ApiURL.String(), + Debug: a.Logger.DebugEnabled(), + HTTPClient: tc, + UserAgent: a.UserAgent, + }) + + return client.DefaultApi +} + +// ServiceRegistryMgmt return a new Service Registry Management API client instance +func (a *defaultAPI) ServiceRegistryMgmt() registrymgmtclient.RegistriesApi { + tc := a.createOAuthTransport(a.AccessToken) + client := registrymgmt.NewAPIClient(®istrymgmt.Config{ + BaseURL: a.ApiURL.String(), + Debug: a.Logger.DebugEnabled(), + HTTPClient: tc, + UserAgent: build.DefaultUserAgentPrefix + build.Version, + }) + + return client.RegistriesApi +} + +// ServiceAccountMgmt return a new Service Account Management API client instance +func (a *defaultAPI) ServiceAccountMgmt() kafkamgmtclient.SecurityApi { + tc := a.createOAuthTransport(a.AccessToken) + client := kafkamgmt.NewAPIClient(&kafkamgmt.Config{ + BaseURL: a.ApiURL.String(), + Debug: a.Logger.DebugEnabled(), + HTTPClient: tc, + UserAgent: a.UserAgent, + }) + + return client.SecurityApi +} + +// KafkaAdmin returns a new Kafka Admin API client instance, with the Kafka configuration object +func (a *defaultAPI) KafkaAdmin(instanceID string) (*kafkainstanceclient.APIClient, *kafkamgmtclient.KafkaRequest, error) { + kafkaAPI := a.KafkaMgmt() + + kafkaInstance, resp, err := kafkaAPI.GetKafkaById(context.Background(), instanceID).Execute() + if resp != nil { + defer resp.Body.Close() + } + if kafkautil.IsErr(err, kafkautil.ErrorCode7) { + return nil, nil, kafkautil.NotFoundByIDError(instanceID) + } else if err != nil { + return nil, nil, fmt.Errorf("%w", err) + } + + kafkaStatus := kafkaInstance.GetStatus() + + switch kafkaStatus { + case svcstatus.StatusProvisioning, svcstatus.StatusAccepted: + err = fmt.Errorf(`Kafka instance "%v" is not ready yet`, kafkaInstance.GetName()) + return nil, nil, err + case svcstatus.StatusFailed: + err = fmt.Errorf(`Kafka instance "%v" has failed`, kafkaInstance.GetName()) + return nil, nil, err + case svcstatus.StatusDeprovision: + err = fmt.Errorf(`Kafka instance "%v" is being deprovisioned`, kafkaInstance.GetName()) + return nil, nil, err + case svcstatus.StatusDeleting: + err = fmt.Errorf(`Kafka instance "%v" is being deleted`, kafkaInstance.GetName()) + return nil, nil, err + } + + bootstrapURL := kafkaInstance.GetBootstrapServerHost() + if bootstrapURL == "" { + err = fmt.Errorf(`bootstrap URL is missing for Kafka instance "%v"`, kafkaInstance.GetName()) + + return nil, nil, err + } + + host, port, _ := net.SplitHostPort(bootstrapURL) + + var apiURL *url.URL + + if host == "localhost" { + apiURL = &url.URL{ + Scheme: "http", + Host: fmt.Sprintf("localhost:%v", port), + } + apiURL.Scheme = "http" + apiURL.Path = "/data/kafka" + } else { + apiHost := fmt.Sprintf("admin-server-%v", host) + apiURL, _ = url.Parse(apiHost) + apiURL.Scheme = "https" + apiURL.Path = "/rest" + apiURL.Host = fmt.Sprintf("admin-server-%v", host) + } + + a.Logger.Debugf("Making request to %v", apiURL.String()) + + client := kafkainstance.NewAPIClient(&kafkainstance.Config{ + BaseURL: apiURL.String(), + Debug: a.Logger.DebugEnabled(), + HTTPClient: a.createOAuthTransport(a.MasAccessToken), + UserAgent: a.UserAgent, + }) + + return client, &kafkaInstance, nil +} + +// ServiceRegistryInstance returns a new Service Registry API client instance, with the Registry configuration object +func (a *defaultAPI) ServiceRegistryInstance(instanceID string) (*registryinstanceclient.APIClient, *registrymgmtclient.Registry, error) { + registryAPI := a.ServiceRegistryMgmt() + + instance, resp, err := registryAPI.GetRegistry(context.Background(), instanceID).Execute() + defer resp.Body.Close() + if err != nil { + return nil, nil, fmt.Errorf("%w", err) + } + + status := svcstatus.ServiceStatus(instance.GetStatus()) + // nolint + switch status { + case svcstatus.StatusProvisioning, svcstatus.StatusAccepted: + err = fmt.Errorf(`service registry instance "%v" is not ready yet`, instance.GetName()) + return nil, nil, err + case svcstatus.StatusFailed: + err = fmt.Errorf(`service registry instance "%v" has failed`, instance.GetName()) + return nil, nil, err + case svcstatus.StatusDeprovision: + err = fmt.Errorf(`service registry instance "%v" is being deprovisioned`, instance.GetName()) + return nil, nil, err + case svcstatus.StatusDeleting: + err = fmt.Errorf(`service registry instance "%v" is being deleted`, instance.GetName()) + return nil, nil, err + } + + registryUrl := instance.GetRegistryUrl() + if registryUrl == "" { + err = fmt.Errorf(`URL is missing for Service Registry instance "%v"`, instance.GetName()) + + return nil, nil, err + } + + host, port, _ := net.SplitHostPort(registryUrl) + + var baseURL string + if host == "localhost" { + var apiURL = &url.URL{ + Scheme: "http", + Host: fmt.Sprintf("localhost:%v", port), + } + apiURL.Scheme = "http" + apiURL.Path = "/data/registry" + baseURL = apiURL.String() + } else { + baseURL = registryUrl + "/apis/registry/v2" + } + + a.Logger.Debugf("Making request to %v", baseURL) + + client := registryinstance.NewAPIClient(®istryinstance.Config{ + BaseURL: baseURL, + Debug: a.Logger.DebugEnabled(), + HTTPClient: a.createOAuthTransport(a.MasAccessToken), + UserAgent: build.DefaultUserAgentPrefix + build.Version, + }) + + return client, &instance, nil +} + +// AccountMgmt returns a new Account Management API client instance +func (a *defaultAPI) AccountMgmt() amsclient.DefaultApi { + cfg := amsclient.NewConfiguration() + + cfg.Scheme = a.ApiURL.Scheme + cfg.Host = a.ApiURL.Host + cfg.UserAgent = a.UserAgent + + cfg.HTTPClient = a.createOAuthTransport(a.AccessToken) + + apiClient := amsclient.NewAPIClient(cfg) + + return apiClient.DefaultApi +} + +// RBAC returns a new RBAC API client instance +func (a *defaultAPI) RBAC() rbac.RbacAPI { + rbacAPI := rbac.RbacAPI{ + PrincipalAPI: func() rbac.PrincipalAPI { + cl := a.createOAuthTransport(a.AccessToken) + cfg := rbac.Config{ + HTTPClient: cl, + Debug: a.Logger.DebugEnabled(), + BaseURL: a.ConsoleURL, + } + return rbac.NewPrincipalAPIClient(&cfg) + }, + } + return rbacAPI +} + +// wraps the HTTP client with an OAuth2 Transport layer to provide automatic token refreshing +func (a *defaultAPI) createOAuthTransport(accessToken string) *http.Client { + ts := oauth2.StaticTokenSource( + &oauth2.Token{ + AccessToken: accessToken, + }, + ) + + return &http.Client{ + Transport: &oauth2.Transport{ + Base: a.HTTPClient.Transport, + Source: oauth2.ReuseTokenSource(nil, ts), + }, + } +} diff --git a/pkg/connection/connection.go b/pkg/core/connection/connection.go similarity index 91% rename from pkg/connection/connection.go rename to pkg/core/connection/connection.go index fb5c3794c..3ff7a000e 100644 --- a/pkg/connection/connection.go +++ b/pkg/core/connection/connection.go @@ -2,8 +2,7 @@ package connection import ( "context" - - "github.com/redhat-developer/app-services-cli/pkg/api" + "github.com/redhat-developer/app-services-cli/pkg/core/connection/api" ) type Config struct { @@ -32,5 +31,5 @@ type Connection interface { // Method to perform a logout request to the authentication server Logout(ctx context.Context) error // Method to create the API clients - API() *api.API + API() api.API } diff --git a/pkg/connection/connection_mock.go b/pkg/core/connection/connection_mock.go similarity index 77% rename from pkg/connection/connection_mock.go rename to pkg/core/connection/connection_mock.go index 8274e4134..50ed3df23 100644 --- a/pkg/connection/connection_mock.go +++ b/pkg/core/connection/connection_mock.go @@ -5,9 +5,8 @@ package connection import ( "context" + "github.com/redhat-developer/app-services-cli/pkg/core/connection/api" "sync" - - "github.com/redhat-developer/app-services-cli/pkg/api" ) // Ensure, that ConnectionMock does implement Connection. @@ -16,28 +15,28 @@ var _ Connection = &ConnectionMock{} // ConnectionMock is a mock implementation of Connection. // -// func TestSomethingThatUsesConnection(t *testing.T) { +// func TestSomethingThatUsesConnection(t *testing.T) { // -// // make and configure a mocked Connection -// mockedConnection := &ConnectionMock{ -// APIFunc: func() *api.API { -// panic("mock out the API method") -// }, -// LogoutFunc: func(ctx context.Context) error { -// panic("mock out the Logout method") -// }, -// RefreshTokensFunc: func(ctx context.Context) error { -// panic("mock out the RefreshTokens method") -// }, -// } +// // make and configure a mocked Connection +// mockedConnection := &ConnectionMock{ +// APIFunc: func() apis.API { +// panic("mock out the API method") +// }, +// LogoutFunc: func(ctx context.Context) error { +// panic("mock out the Logout method") +// }, +// RefreshTokensFunc: func(ctx context.Context) error { +// panic("mock out the RefreshTokens method") +// }, +// } // -// // use mockedConnection in code that requires Connection -// // and then make assertions. +// // use mockedConnection in code that requires Connection +// // and then make assertions. // -// } +// } type ConnectionMock struct { // APIFunc mocks the API method. - APIFunc func() *api.API + APIFunc func() api.API // LogoutFunc mocks the Logout method. LogoutFunc func(ctx context.Context) error @@ -48,7 +47,8 @@ type ConnectionMock struct { // calls tracks calls to the methods. calls struct { // API holds details about calls to the API method. - API []struct{} + API []struct { + } // Logout holds details about calls to the Logout method. Logout []struct { // Ctx is the ctx argument value. @@ -66,11 +66,12 @@ type ConnectionMock struct { } // API calls APIFunc. -func (mock *ConnectionMock) API() *api.API { +func (mock *ConnectionMock) API() api.API { if mock.APIFunc == nil { panic("ConnectionMock.APIFunc: method is nil but Connection.API was just called") } - callInfo := struct{}{} + callInfo := struct { + }{} mock.lockAPI.Lock() mock.calls.API = append(mock.calls.API, callInfo) mock.lockAPI.Unlock() @@ -80,8 +81,10 @@ func (mock *ConnectionMock) API() *api.API { // APICalls gets all the calls that were made to API. // Check the length with: // len(mockedConnection.APICalls()) -func (mock *ConnectionMock) APICalls() []struct{} { - var calls []struct{} +func (mock *ConnectionMock) APICalls() []struct { +} { + var calls []struct { + } mock.lockAPI.RLock() calls = mock.calls.API mock.lockAPI.RUnlock() diff --git a/pkg/connection/builder.go b/pkg/core/connection/kcconnection/builder.go similarity index 73% rename from pkg/connection/builder.go rename to pkg/core/connection/kcconnection/builder.go index 2e18d8385..c4d157073 100644 --- a/pkg/connection/builder.go +++ b/pkg/core/connection/kcconnection/builder.go @@ -1,27 +1,27 @@ -package connection +package kcconnection import ( "context" "crypto/tls" "crypto/x509" "fmt" + "github.com/redhat-developer/app-services-cli/pkg/auth/token" + "github.com/redhat-developer/app-services-cli/pkg/cmd/debug" "net/http" "net/url" - "github.com/redhat-developer/app-services-cli/internal/build" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/debug" + "github.com/redhat-developer/app-services-cli/internal/build" "github.com/Nerzal/gocloak/v7" - - "github.com/redhat-developer/app-services-cli/pkg/auth/token" - "github.com/redhat-developer/app-services-cli/pkg/logging" ) -// Builder contains the configuration and logic needed to connect to `api.openshift.com`. -// Don't create instances of this type directly, use the NewBulder function instead -type Builder struct { +// ConnectionBuilder contains the configuration and logic needed to connect to `api.openshift.com`. +// Don't create instances of this type directly, use the NewConnectionBuilder function instead +type ConnectionBuilder struct { trustedCAs *x509.CertPool insecure bool disableKeepAlives bool @@ -38,7 +38,7 @@ type Builder struct { config config.IConfig logger logging.Logger transportWrapper TransportWrapper - connectionConfig *Config + connectionConfig *connection.Config } // TransportWrapper is a wrapper for a transport of type http.RoundTripper. @@ -46,96 +46,96 @@ type Builder struct { // request and response. type TransportWrapper func(http.RoundTripper) http.RoundTripper -// NewBuilder create an builder that knows how to create connections with the default +// NewConnectionBuilder create an builder that knows how to create connections with the default // configuration. -func NewBuilder() *Builder { - return &Builder{} +func NewConnectionBuilder() *ConnectionBuilder { + return &ConnectionBuilder{} } -func (b *Builder) WithAccessToken(accessToken string) *Builder { +func (b *ConnectionBuilder) WithAccessToken(accessToken string) *ConnectionBuilder { b.accessToken = accessToken return b } -func (b *Builder) WithRefreshToken(refreshToken string) *Builder { +func (b *ConnectionBuilder) WithRefreshToken(refreshToken string) *ConnectionBuilder { b.refreshToken = refreshToken return b } -func (b *Builder) WithMASAccessToken(accessToken string) *Builder { +func (b *ConnectionBuilder) WithMASAccessToken(accessToken string) *ConnectionBuilder { b.masAccessToken = accessToken return b } -func (b *Builder) WithMASRefreshToken(refreshToken string) *Builder { +func (b *ConnectionBuilder) WithMASRefreshToken(refreshToken string) *ConnectionBuilder { b.masRefreshToken = refreshToken return b } -func (b *Builder) WithTrustedCAs(value *x509.CertPool) *Builder { +func (b *ConnectionBuilder) WithTrustedCAs(value *x509.CertPool) *ConnectionBuilder { b.trustedCAs = value return b } -func (b *Builder) WithInsecure(insecure bool) *Builder { +func (b *ConnectionBuilder) WithInsecure(insecure bool) *ConnectionBuilder { b.insecure = insecure return b } -func (b *Builder) WithTransportWrapper(transportWrapper TransportWrapper) *Builder { +func (b *ConnectionBuilder) WithTransportWrapper(transportWrapper TransportWrapper) *ConnectionBuilder { b.transportWrapper = transportWrapper return b } -func (b *Builder) WithLogger(logger logging.Logger) *Builder { +func (b *ConnectionBuilder) WithLogger(logger logging.Logger) *ConnectionBuilder { b.logger = logger return b } -func (b *Builder) WithURL(url string) *Builder { +func (b *ConnectionBuilder) WithURL(url string) *ConnectionBuilder { b.apiURL = url return b } -func (b *Builder) WithConsoleURL(url string) *Builder { +func (b *ConnectionBuilder) WithConsoleURL(url string) *ConnectionBuilder { b.consoleURL = url return b } -func (b *Builder) WithAuthURL(authURL string) *Builder { +func (b *ConnectionBuilder) WithAuthURL(authURL string) *ConnectionBuilder { b.authURL = authURL return b } -func (b *Builder) WithMASAuthURL(authURL string) *Builder { +func (b *ConnectionBuilder) WithMASAuthURL(authURL string) *ConnectionBuilder { b.masAuthURL = authURL return b } -func (b *Builder) WithClientID(clientID string) *Builder { +func (b *ConnectionBuilder) WithClientID(clientID string) *ConnectionBuilder { b.clientID = clientID return b } -func (b *Builder) WithScopes(scopes ...string) *Builder { +func (b *ConnectionBuilder) WithScopes(scopes ...string) *ConnectionBuilder { b.scopes = append(b.scopes, scopes...) return b } // DisableKeepAlives disables HTTP keep-alives with the server. This is unrelated to similarly // named TCP keep-alives. -func (b *Builder) DisableKeepAlives(flag bool) *Builder { +func (b *ConnectionBuilder) DisableKeepAlives(flag bool) *ConnectionBuilder { b.disableKeepAlives = flag return b } -func (b *Builder) WithConfig(cfg config.IConfig) *Builder { +func (b *ConnectionBuilder) WithConfig(cfg config.IConfig) *ConnectionBuilder { b.config = cfg return b } // WithConnectionConfig contains config for the connection instance -func (b *Builder) WithConnectionConfig(cfg *Config) *Builder { +func (b *ConnectionBuilder) WithConnectionConfig(cfg *connection.Config) *ConnectionBuilder { b.connectionConfig = cfg return b } @@ -146,7 +146,7 @@ func (b *Builder) WithConnectionConfig(cfg *Config) *Builder { // // This operation is potentially lengthy, as it may require network communications. Consider using a // context and the BuildContext method. -func (b *Builder) Build() (connection *KeycloakConnection, err error) { +func (b *ConnectionBuilder) Build() (connection *Connection, err error) { return b.BuildContext(context.Background()) } @@ -154,7 +154,7 @@ func (b *Builder) Build() (connection *KeycloakConnection, err error) { // can be reused to create multiple connections with the same configuration. It returns a pointer to // the connection, and an error if something fails when trying to create it. // nolint:funlen -func (b *Builder) BuildContext(ctx context.Context) (connection *KeycloakConnection, err error) { +func (b *ConnectionBuilder) BuildContext(ctx context.Context) (connection *Connection, err error) { if b.connectionConfig.RequireAuth && b.accessToken == "" && b.refreshToken == "" { return nil, &AuthError{notLoggedInError()} } @@ -276,7 +276,7 @@ func (b *Builder) BuildContext(ctx context.Context) (connection *KeycloakConnect restyClient.SetTLSClientConfig(&tls.Config{InsecureSkipVerify: b.insecure}) masKc.SetRestyClient(&masRestyClient) - connection = &KeycloakConnection{ + connection = &Connection{ insecure: b.insecure, trustedCAs: b.trustedCAs, clientID: b.clientID, @@ -298,7 +298,7 @@ func (b *Builder) BuildContext(ctx context.Context) (connection *KeycloakConnect return connection, nil } -func (b *Builder) createTransport() (transport http.RoundTripper) { +func (b *ConnectionBuilder) createTransport() (transport http.RoundTripper) { // Create the raw transport: // #nosec 402 transport = &http.Transport{ diff --git a/pkg/connection/errors.go b/pkg/core/connection/kcconnection/errors.go similarity index 91% rename from pkg/connection/errors.go rename to pkg/core/connection/kcconnection/errors.go index f0e20c3af..6e7a1c2bd 100644 --- a/pkg/connection/errors.go +++ b/pkg/core/connection/kcconnection/errors.go @@ -1,4 +1,4 @@ -package connection +package kcconnection import ( "errors" @@ -40,7 +40,7 @@ func notLoggedInError() error { } func notLoggedInMASError() error { - return errors.New(`not logged in to identity.api.openshift.com. Run "rhoas login" to authenticate. Note: token-based login is not supported by the Kafka "topic" and "consumergroup" subcommands`) + return errors.New(`not logged in to identity.api.openshift.com. Run "rhoas login" to authenticate. Note: token-based login is not supported by the Kafka "topic" and "consumer-group" subcommands`) } func sessionExpiredError() error { diff --git a/pkg/core/connection/kcconnection/keycloak_connection.go b/pkg/core/connection/kcconnection/keycloak_connection.go new file mode 100644 index 000000000..dbd5f0531 --- /dev/null +++ b/pkg/core/connection/kcconnection/keycloak_connection.go @@ -0,0 +1,154 @@ +package kcconnection + +import ( + "context" + "crypto/x509" + "github.com/redhat-developer/app-services-cli/pkg/auth/token" + "net/http" + "net/url" + + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/connection/api" + "github.com/redhat-developer/app-services-cli/pkg/core/connection/api/defaultapi" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + + "github.com/redhat-developer/app-services-cli/internal/build" + + "github.com/Nerzal/gocloak/v7" +) + +var DefaultScopes = []string{ + "openid", +} + +// Connection contains the data needed to connect to the `api.openshift.com`. Don't create instances +// of this type directly, use the builder instead +type Connection struct { + trustedCAs *x509.CertPool + insecure bool + defaultHTTPClient *http.Client + clientID string + Token *token.Token + MASToken *token.Token + scopes []string + keycloakClient gocloak.GoCloak + masKeycloakClient gocloak.GoCloak + apiURL *url.URL + consoleURL *url.URL + defaultRealm string + masRealm string + logger logging.Logger + Config config.IConfig + connectionConfig *connection.Config +} + +// RefreshTokens will fetch a refreshed copy of the access token and refresh token from the authentication server +// The new tokens will have an increased expiry time and are persisted in the config and connection +func (c *Connection) RefreshTokens(ctx context.Context) (err error) { + c.logger.Debug("Refreshing tokens") + + cfg, err := c.Config.Load() + if err != nil { + return err + } + + // track if we need to update the config with new token values + var cfgChanged bool + if c.connectionConfig.RequireAuth { + // nolint:govet + refreshedTk, err := c.keycloakClient.RefreshToken(ctx, c.Token.RefreshToken, c.clientID, "", c.defaultRealm) + if err != nil { + return &AuthError{err} + } + + if refreshedTk.AccessToken != c.Token.AccessToken { + c.Token.AccessToken = refreshedTk.AccessToken + cfg.AccessToken = refreshedTk.AccessToken + cfgChanged = true + } + if refreshedTk.RefreshToken != c.Token.RefreshToken { + c.Token.RefreshToken = refreshedTk.RefreshToken + cfg.RefreshToken = refreshedTk.RefreshToken + cfgChanged = true + } + } + + if c.connectionConfig.RequireMASAuth { + // nolint:govet + refreshedMasTk, err := c.masKeycloakClient.RefreshToken(ctx, c.MASToken.RefreshToken, c.clientID, "", c.masRealm) + if err != nil { + return &MasAuthError{err} + } + if refreshedMasTk.AccessToken != c.MASToken.AccessToken { + c.MASToken.AccessToken = refreshedMasTk.AccessToken + cfg.MasAccessToken = refreshedMasTk.AccessToken + cfgChanged = true + } + if refreshedMasTk.RefreshToken != c.MASToken.RefreshToken { + c.MASToken.RefreshToken = refreshedMasTk.RefreshToken + cfg.MasRefreshToken = refreshedMasTk.RefreshToken + cfgChanged = true + } + } + + if !cfgChanged { + return nil + } + + if err = c.Config.Save(cfg); err != nil { + return err + } + c.logger.Debug("Tokens refreshed") + + return nil +} + +// Logout logs the user out from the authentication server +// Invalidating and removing the access and refresh tokens +// The user will have to log in again to access the API +func (c *Connection) Logout(ctx context.Context) (err error) { + err = c.keycloakClient.Logout(ctx, c.clientID, "", c.defaultRealm, c.Token.RefreshToken) + if err != nil { + return &AuthError{err} + } + + if c.MASToken.RefreshToken != "" { + err = c.masKeycloakClient.Logout(ctx, c.clientID, "", c.masRealm, c.MASToken.RefreshToken) + if err != nil { + return &AuthError{err} + } + } + + c.Token.AccessToken = "" + c.Token.RefreshToken = "" + c.MASToken.AccessToken = "" + c.MASToken.RefreshToken = "" + + cfg, err := c.Config.Load() + if err != nil { + return err + } + + cfg.AccessToken = "" + cfg.RefreshToken = "" + cfg.MasAccessToken = "" + cfg.MasRefreshToken = "" + + return c.Config.Save(cfg) +} + +// API Creates a new API type which is a single type for multiple APIs +func (c *Connection) API() api.API { + apiClient := defaultapi.New(&defaultapi.Config{ + HTTPClient: c.defaultHTTPClient, + UserAgent: build.DefaultUserAgentPrefix + build.Version, + MasAccessToken: c.MASToken.AccessToken, + AccessToken: c.Token.AccessToken, + ApiURL: c.apiURL, + ConsoleURL: c.consoleURL, + Logger: c.logger, + }) + + return apiClient +} diff --git a/pkg/connection/keycloak_util.go b/pkg/core/connection/kcconnection/keycloak_util.go similarity index 97% rename from pkg/connection/keycloak_util.go rename to pkg/core/connection/kcconnection/keycloak_util.go index 832c88ddf..2327d91a2 100644 --- a/pkg/connection/keycloak_util.go +++ b/pkg/core/connection/kcconnection/keycloak_util.go @@ -1,4 +1,4 @@ -package connection +package kcconnection import ( "fmt" diff --git a/pkg/connection/keycloak_util_test.go b/pkg/core/connection/kcconnection/keycloak_util_test.go similarity index 98% rename from pkg/connection/keycloak_util_test.go rename to pkg/core/connection/kcconnection/keycloak_util_test.go index 5e8a97c08..361dc873e 100644 --- a/pkg/connection/keycloak_util_test.go +++ b/pkg/core/connection/kcconnection/keycloak_util_test.go @@ -1,4 +1,4 @@ -package connection +package kcconnection import ( "net/url" diff --git a/pkg/common/commonerr/commonerr.go b/pkg/core/errors/errors.go similarity index 66% rename from pkg/common/commonerr/commonerr.go rename to pkg/core/errors/errors.go index 13a166153..474f0acf8 100644 --- a/pkg/common/commonerr/commonerr.go +++ b/pkg/core/errors/errors.go @@ -1,9 +1,10 @@ -package commonerr +package errors import "fmt" var CastErr error +// NewCastError returns a new error for when a type could not be cast func NewCastError(v interface{}, t string) error { CastErr = fmt.Errorf(`could not cast %v, to type "%v"`, v, t) return CastErr diff --git a/pkg/httputil/httputil.go b/pkg/core/httputil/httputil.go similarity index 92% rename from pkg/httputil/httputil.go rename to pkg/core/httputil/httputil.go index 7be623298..1bdd45394 100644 --- a/pkg/httputil/httputil.go +++ b/pkg/core/httputil/httputil.go @@ -1,11 +1,11 @@ -// Package httputil contains functions that act as middleware for api interactions +// Package httputil contains functions that act as middleware for API interactions package httputil import ( "net/http" "net/http/httputil" - "github.com/redhat-developer/app-services-cli/pkg/logging" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" ) // LoggingRoundTripper implements http.RoundTripper. When set as Transport of http.Client, it executes HTTP requests with logging. diff --git a/pkg/color/color.go b/pkg/core/ioutil/color/color.go similarity index 100% rename from pkg/color/color.go rename to pkg/core/ioutil/color/color.go diff --git a/pkg/dump/dump.go b/pkg/core/ioutil/dump/dump.go similarity index 98% rename from pkg/dump/dump.go rename to pkg/core/ioutil/dump/dump.go index b8de433a1..dbfbd4f1e 100644 --- a/pkg/dump/dump.go +++ b/pkg/core/ioutil/dump/dump.go @@ -5,14 +5,13 @@ import ( "bytes" "encoding/json" "fmt" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil" "io" "os" "os/exec" "strings" "github.com/landoop/tableprinter" - "github.com/redhat-developer/app-services-cli/pkg/cmdutil" - "gitlab.com/c0b/go-ordered-json" "gopkg.in/yaml.v2" ) diff --git a/pkg/editor/editor.go b/pkg/core/ioutil/editor/editor.go similarity index 100% rename from pkg/editor/editor.go rename to pkg/core/ioutil/editor/editor.go diff --git a/pkg/editor/linux.go b/pkg/core/ioutil/editor/linux.go similarity index 100% rename from pkg/editor/linux.go rename to pkg/core/ioutil/editor/linux.go diff --git a/pkg/editor/windows.go b/pkg/core/ioutil/editor/windows.go similarity index 86% rename from pkg/editor/windows.go rename to pkg/core/ioutil/editor/windows.go index 908ef6973..dc240ee2f 100644 --- a/pkg/editor/windows.go +++ b/pkg/core/ioutil/editor/windows.go @@ -1,3 +1,4 @@ +//go:build windows // +build windows package editor diff --git a/pkg/icon/icon.go b/pkg/core/ioutil/icon/icon.go similarity index 94% rename from pkg/icon/icon.go rename to pkg/core/ioutil/icon/icon.go index b9e190dfc..2509ddc1f 100644 --- a/pkg/icon/icon.go +++ b/pkg/core/ioutil/icon/icon.go @@ -1,9 +1,8 @@ package icon import ( + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/color" "runtime" - - "github.com/redhat-developer/app-services-cli/pkg/color" ) const ( diff --git a/pkg/iostreams/iostreams.go b/pkg/core/ioutil/iostreams/iostreams.go similarity index 100% rename from pkg/iostreams/iostreams.go rename to pkg/core/ioutil/iostreams/iostreams.go diff --git a/pkg/ioutil/spinner/spinner.go b/pkg/core/ioutil/spinner/spinner.go similarity index 93% rename from pkg/ioutil/spinner/spinner.go rename to pkg/core/ioutil/spinner/spinner.go index ead77b9ae..6bc9f3d11 100644 --- a/pkg/ioutil/spinner/spinner.go +++ b/pkg/core/ioutil/spinner/spinner.go @@ -2,11 +2,11 @@ package spinner import ( "fmt" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" "io" "time" "github.com/briandowns/spinner" - "github.com/redhat-developer/app-services-cli/pkg/localize" ) type Spinner struct { diff --git a/pkg/localize/goi18n/go_i18n.go b/pkg/core/localize/goi18n/go_i18n.go similarity index 96% rename from pkg/localize/goi18n/go_i18n.go rename to pkg/core/localize/goi18n/go_i18n.go index 3d83852fe..01c0e66c1 100644 --- a/pkg/localize/goi18n/go_i18n.go +++ b/pkg/core/localize/goi18n/go_i18n.go @@ -5,10 +5,10 @@ import ( "encoding/json" "errors" "fmt" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" "io/fs" - "github.com/redhat-developer/app-services-cli/pkg/dump" - "github.com/redhat-developer/app-services-cli/pkg/localize" "gopkg.in/yaml.v2" "github.com/BurntSushi/toml" diff --git a/pkg/localize/goi18n/go_i18n_test.go b/pkg/core/localize/goi18n/go_i18n_test.go similarity index 97% rename from pkg/localize/goi18n/go_i18n_test.go rename to pkg/core/localize/goi18n/go_i18n_test.go index bc03d16d9..a04175daf 100644 --- a/pkg/localize/goi18n/go_i18n_test.go +++ b/pkg/core/localize/goi18n/go_i18n_test.go @@ -2,11 +2,11 @@ package goi18n import ( + "github.com/redhat-developer/app-services-cli/pkg/core/localize" "io/fs" "testing" "testing/fstest" - "github.com/redhat-developer/app-services-cli/pkg/localize" "golang.org/x/text/language" ) diff --git a/pkg/localize/locales/en/auth_token.en.toml b/pkg/core/localize/locales/en/auth_token.en.toml similarity index 100% rename from pkg/localize/locales/en/auth_token.en.toml rename to pkg/core/localize/locales/en/auth_token.en.toml diff --git a/pkg/localize/locales/en/browser.en.toml b/pkg/core/localize/locales/en/browser.en.toml similarity index 100% rename from pkg/localize/locales/en/browser.en.toml rename to pkg/core/localize/locales/en/browser.en.toml diff --git a/pkg/localize/locales/en/cmd/acl.en.toml b/pkg/core/localize/locales/en/cmd/acl.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/acl.en.toml rename to pkg/core/localize/locales/en/cmd/acl.en.toml diff --git a/pkg/localize/locales/en/cmd/artifact.en.toml b/pkg/core/localize/locales/en/cmd/artifact.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/artifact.en.toml rename to pkg/core/localize/locales/en/cmd/artifact.en.toml diff --git a/pkg/localize/locales/en/cmd/cluster.en.toml b/pkg/core/localize/locales/en/cmd/cluster.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/cluster.en.toml rename to pkg/core/localize/locales/en/cmd/cluster.en.toml diff --git a/pkg/localize/locales/en/cmd/common.en.toml b/pkg/core/localize/locales/en/cmd/common.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/common.en.toml rename to pkg/core/localize/locales/en/cmd/common.en.toml diff --git a/pkg/localize/locales/en/cmd/completion.en.toml b/pkg/core/localize/locales/en/cmd/completion.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/completion.en.toml rename to pkg/core/localize/locales/en/cmd/completion.en.toml diff --git a/pkg/localize/locales/en/cmd/flags.en.toml b/pkg/core/localize/locales/en/cmd/flags.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/flags.en.toml rename to pkg/core/localize/locales/en/cmd/flags.en.toml diff --git a/pkg/localize/locales/en/cmd/kafka.en.toml b/pkg/core/localize/locales/en/cmd/kafka.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/kafka.en.toml rename to pkg/core/localize/locales/en/cmd/kafka.en.toml diff --git a/pkg/localize/locales/en/cmd/kafka_consumergroup_reset_offset.toml b/pkg/core/localize/locales/en/cmd/kafka_consumergroup_reset_offset.toml similarity index 100% rename from pkg/localize/locales/en/cmd/kafka_consumergroup_reset_offset.toml rename to pkg/core/localize/locales/en/cmd/kafka_consumergroup_reset_offset.toml diff --git a/pkg/localize/locales/en/cmd/kafka_update.en.toml b/pkg/core/localize/locales/en/cmd/kafka_update.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/kafka_update.en.toml rename to pkg/core/localize/locales/en/cmd/kafka_update.en.toml diff --git a/pkg/localize/locales/en/cmd/login.en.toml b/pkg/core/localize/locales/en/cmd/login.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/login.en.toml rename to pkg/core/localize/locales/en/cmd/login.en.toml diff --git a/pkg/localize/locales/en/cmd/logout.en.toml b/pkg/core/localize/locales/en/cmd/logout.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/logout.en.toml rename to pkg/core/localize/locales/en/cmd/logout.en.toml diff --git a/pkg/localize/locales/en/cmd/main.en.toml b/pkg/core/localize/locales/en/cmd/main.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/main.en.toml rename to pkg/core/localize/locales/en/cmd/main.en.toml diff --git a/pkg/localize/locales/en/cmd/registry_crud.en.toml b/pkg/core/localize/locales/en/cmd/registry_crud.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/registry_crud.en.toml rename to pkg/core/localize/locales/en/cmd/registry_crud.en.toml diff --git a/pkg/localize/locales/en/cmd/role.toml b/pkg/core/localize/locales/en/cmd/role.toml similarity index 100% rename from pkg/localize/locales/en/cmd/role.toml rename to pkg/core/localize/locales/en/cmd/role.toml diff --git a/pkg/localize/locales/en/cmd/root.en.en.toml b/pkg/core/localize/locales/en/cmd/root.en.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/root.en.en.toml rename to pkg/core/localize/locales/en/cmd/root.en.en.toml diff --git a/pkg/localize/locales/en/cmd/serviceaccount.en.toml b/pkg/core/localize/locales/en/cmd/serviceaccount.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/serviceaccount.en.toml rename to pkg/core/localize/locales/en/cmd/serviceaccount.en.toml diff --git a/pkg/localize/locales/en/cmd/serviceaccount_create.en.toml b/pkg/core/localize/locales/en/cmd/serviceaccount_create.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/serviceaccount_create.en.toml rename to pkg/core/localize/locales/en/cmd/serviceaccount_create.en.toml diff --git a/pkg/localize/locales/en/cmd/serviceaccount_delete.en.toml b/pkg/core/localize/locales/en/cmd/serviceaccount_delete.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/serviceaccount_delete.en.toml rename to pkg/core/localize/locales/en/cmd/serviceaccount_delete.en.toml diff --git a/pkg/localize/locales/en/cmd/serviceaccount_describe.en.toml b/pkg/core/localize/locales/en/cmd/serviceaccount_describe.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/serviceaccount_describe.en.toml rename to pkg/core/localize/locales/en/cmd/serviceaccount_describe.en.toml diff --git a/pkg/localize/locales/en/cmd/serviceaccount_list.en.toml b/pkg/core/localize/locales/en/cmd/serviceaccount_list.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/serviceaccount_list.en.toml rename to pkg/core/localize/locales/en/cmd/serviceaccount_list.en.toml diff --git a/pkg/localize/locales/en/cmd/serviceaccount_reset_credentials.en.toml b/pkg/core/localize/locales/en/cmd/serviceaccount_reset_credentials.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/serviceaccount_reset_credentials.en.toml rename to pkg/core/localize/locales/en/cmd/serviceaccount_reset_credentials.en.toml diff --git a/pkg/localize/locales/en/cmd/status.en.toml b/pkg/core/localize/locales/en/cmd/status.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/status.en.toml rename to pkg/core/localize/locales/en/cmd/status.en.toml diff --git a/pkg/localize/locales/en/cmd/topic.en.toml b/pkg/core/localize/locales/en/cmd/topic.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/topic.en.toml rename to pkg/core/localize/locales/en/cmd/topic.en.toml diff --git a/pkg/localize/locales/en/cmd/version.en.toml b/pkg/core/localize/locales/en/cmd/version.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/version.en.toml rename to pkg/core/localize/locales/en/cmd/version.en.toml diff --git a/pkg/localize/locales/en/cmd/whoami.en.toml b/pkg/core/localize/locales/en/cmd/whoami.en.toml similarity index 100% rename from pkg/localize/locales/en/cmd/whoami.en.toml rename to pkg/core/localize/locales/en/cmd/whoami.en.toml diff --git a/pkg/localize/locales/en/common.en.toml b/pkg/core/localize/locales/en/common.en.toml similarity index 100% rename from pkg/localize/locales/en/common.en.toml rename to pkg/core/localize/locales/en/common.en.toml diff --git a/pkg/localize/locales/en/connection.en.toml b/pkg/core/localize/locales/en/connection.en.toml similarity index 100% rename from pkg/localize/locales/en/connection.en.toml rename to pkg/core/localize/locales/en/connection.en.toml diff --git a/pkg/localize/locales/en/keycloak_connection.en.toml b/pkg/core/localize/locales/en/keycloak_connection.en.toml similarity index 100% rename from pkg/localize/locales/en/keycloak_connection.en.toml rename to pkg/core/localize/locales/en/keycloak_connection.en.toml diff --git a/pkg/localize/locales/en/profile.en.toml b/pkg/core/localize/locales/en/profile.en.toml similarity index 100% rename from pkg/localize/locales/en/profile.en.toml rename to pkg/core/localize/locales/en/profile.en.toml diff --git a/pkg/localize/locales/en/service.crud.en.toml b/pkg/core/localize/locales/en/service.crud.en.toml similarity index 100% rename from pkg/localize/locales/en/service.crud.en.toml rename to pkg/core/localize/locales/en/service.crud.en.toml diff --git a/pkg/localize/localize.go b/pkg/core/localize/localize.go similarity index 100% rename from pkg/localize/localize.go rename to pkg/core/localize/localize.go diff --git a/pkg/logging/logger.go b/pkg/core/logging/logger.go similarity index 100% rename from pkg/logging/logger.go rename to pkg/core/logging/logger.go diff --git a/pkg/logging/std_logger.go b/pkg/core/logging/std_logger.go similarity index 100% rename from pkg/logging/std_logger.go rename to pkg/core/logging/std_logger.go diff --git a/pkg/service/status/status.go b/pkg/core/status/instanceStatus.go similarity index 80% rename from pkg/service/status/status.go rename to pkg/core/status/instanceStatus.go index 279b0194a..a87743f34 100644 --- a/pkg/service/status/status.go +++ b/pkg/core/status/instanceStatus.go @@ -7,12 +7,12 @@ const ( StatusAccepted ServiceStatus = "accepted" StatusPreparing ServiceStatus = "preparing" StatusProvisioning ServiceStatus = "provisioning" - StatusReady ServiceStatus = "ready" StatusFailed ServiceStatus = "failed" StatusDeprovision ServiceStatus = "deprovision" StatusDeleting ServiceStatus = "deleting" ) -func IsCreating(status string) bool { +// IsInstanceCreating returns whether the Kafka instance is still being created +func IsInstanceCreating(status string) bool { return status == StatusAccepted || status == StatusPreparing || status == StatusProvisioning } diff --git a/pkg/status/status.go b/pkg/core/status/status.go similarity index 90% rename from pkg/status/status.go rename to pkg/core/status/status.go index 2c8ede9dd..6b143fafd 100644 --- a/pkg/status/status.go +++ b/pkg/core/status/status.go @@ -8,18 +8,17 @@ import ( "strings" "text/tabwriter" - kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" + "github.com/redhat-developer/app-services-cli/pkg/kafkautil" + + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/kafka/kafkaerr" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistry" + kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" "github.com/openconfig/goyang/pkg/indent" srsmgmtv1 "github.com/redhat-developer/app-services-sdk-go/registrymgmt/apiv1/client" - - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/api/kas" - "github.com/redhat-developer/app-services-cli/pkg/logging" ) const tagTitle = "title" @@ -66,10 +65,10 @@ func Get(ctx context.Context, opts *Options) (status *Status, ok bool, err error if stringInSlice("kafka", opts.Services) { if instanceID, exists := cfg.GetKafkaIdOk(); exists { // nolint:govet - kafkaStatus, err := getKafkaStatus(ctx, api.Kafka(), instanceID) + kafkaStatus, err := getKafkaStatus(ctx, api.KafkaMgmt(), instanceID) if err != nil { - if kas.IsErr(err, kas.ErrorCode7) { - err = kafkaerr.NotFoundByIDError(instanceID) + if kafkautil.IsErr(err, kafkautil.ErrorCode7) { + err = kafkautil.NotFoundByIDError(instanceID) opts.Logger.Error(err) opts.Logger.Info(`Run "rhoas kafka use" to use another Kafka instance.`) } @@ -193,8 +192,8 @@ func createDivider(n int) string { func getKafkaStatus(ctx context.Context, api kafkamgmtclient.DefaultApi, id string) (status *KafkaStatus, err error) { kafkaResponse, _, err := api.GetKafkaById(ctx, id).Execute() - if kas.IsErr(err, kas.ErrorCode7) { - return nil, kafkaerr.NotFoundByIDError(id) + if kafkautil.IsErr(err, kafkautil.ErrorCode7) { + return nil, kafkautil.NotFoundByIDError(id) } if err != nil { return nil, err @@ -215,7 +214,7 @@ func getKafkaStatus(ctx context.Context, api kafkamgmtclient.DefaultApi, id stri } func getRegistryStatus(ctx context.Context, api srsmgmtv1.RegistriesApi, id string) (status *RegistryStatus, err error) { - registry, _, err := serviceregistry.GetServiceRegistryByID(ctx, api, id) + registry, _, err := serviceregistryutil.GetServiceRegistryByID(ctx, api, id) if err != nil { return nil, err } diff --git a/pkg/kafka/kafkaerr/error.go b/pkg/kafka/kafkaerr/error.go deleted file mode 100644 index 4c0454f89..000000000 --- a/pkg/kafka/kafkaerr/error.go +++ /dev/null @@ -1,44 +0,0 @@ -package kafkaerr - -import ( - "fmt" -) - -var ( - NotFoundByIDErr error - NotFoundByNameErr error - IllegalSearchValueError error - InvalidNameErr error -) - -func NotFoundByIDError(id string) error { - NotFoundByIDErr = fmt.Errorf(`Kafka instance with ID "%v" not found`, id) - return NotFoundByIDErr -} - -func NotFoundByNameError(name string) error { - NotFoundByNameErr = fmt.Errorf(`Kafka instance "%v" not found`, name) - return NotFoundByNameErr -} - -func InvalidSearchValueError(v string) error { - IllegalSearchValueError = fmt.Errorf(` - illegal search value "%v", search input must satisfy the following conditions: - - - must be of 1 or more characters - - must only consist of alphanumeric characters, '-', '_' and '%%' - `, v) - - return IllegalSearchValueError -} - -func InvalidNameError(v string) error { - InvalidNameErr = fmt.Errorf(`invalid Kafka instance name "%v". Valid names must satisfy the following conditions: - - - must be between 1 and 32 characters - - must only consist of lower case, alphanumeric characters and '-' - - must start with an alphabetic character - - must end with an alphanumeric character - `, v) - return InvalidNameErr -} diff --git a/pkg/kafka/aclutil/acl_table.go b/pkg/kafkautil/aclutil/acl_table.go similarity index 97% rename from pkg/kafka/aclutil/acl_table.go rename to pkg/kafkautil/aclutil/acl_table.go index 2c22dd944..6a524ca23 100644 --- a/pkg/kafka/aclutil/acl_table.go +++ b/pkg/kafkautil/aclutil/acl_table.go @@ -4,7 +4,8 @@ import ( "fmt" "strings" - "github.com/redhat-developer/app-services-cli/pkg/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + kafkainstanceclient "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal/client" ) diff --git a/pkg/kafka/aclutil/constants.go b/pkg/kafkautil/aclutil/constants.go similarity index 100% rename from pkg/kafka/aclutil/constants.go rename to pkg/kafkautil/aclutil/constants.go diff --git a/pkg/kafka/aclutil/enums.go b/pkg/kafkautil/aclutil/enums.go similarity index 100% rename from pkg/kafka/aclutil/enums.go rename to pkg/kafkautil/aclutil/enums.go diff --git a/pkg/kafka/aclutil/enums_test.go b/pkg/kafkautil/aclutil/enums_test.go similarity index 100% rename from pkg/kafka/aclutil/enums_test.go rename to pkg/kafkautil/aclutil/enums_test.go diff --git a/pkg/kafka/aclutil/util.go b/pkg/kafkautil/aclutil/util.go similarity index 91% rename from pkg/kafka/aclutil/util.go rename to pkg/kafkautil/aclutil/util.go index 1a0653dc9..7f209605f 100644 --- a/pkg/kafka/aclutil/util.go +++ b/pkg/kafkautil/aclutil/util.go @@ -6,12 +6,13 @@ import ( "fmt" "net/http" - "github.com/redhat-developer/app-services-cli/internal/config" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/color" - "github.com/redhat-developer/app-services-cli/pkg/iostreams" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/config" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/color" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + kafkainstanceclient "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal/client" ) diff --git a/pkg/kafka/api.go b/pkg/kafkautil/api.go similarity index 74% rename from pkg/kafka/api.go rename to pkg/kafkautil/api.go index 0f51f68cf..4590a796f 100644 --- a/pkg/kafka/api.go +++ b/pkg/kafkautil/api.go @@ -1,12 +1,10 @@ -package kafka +package kafkautil import ( "context" "fmt" "net/http" - "github.com/redhat-developer/app-services-cli/pkg/api/kas" - "github.com/redhat-developer/app-services-cli/pkg/kafka/kafkaerr" kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" ) @@ -14,8 +12,8 @@ func GetKafkaByID(ctx context.Context, api kafkamgmtclient.DefaultApi, id string r := api.GetKafkaById(ctx, id) kafkaReq, httpResponse, err := r.Execute() - if kas.IsErr(err, kas.ErrorCode7) { - return nil, httpResponse, kafkaerr.NotFoundByIDError(id) + if IsErr(err, ErrorCode7) { + return nil, httpResponse, NotFoundByIDError(id) } return &kafkaReq, httpResponse, err @@ -30,7 +28,7 @@ func GetKafkaByName(ctx context.Context, api kafkamgmtclient.DefaultApi, name st } if kafkaList.GetTotal() == 0 { - return nil, nil, kafkaerr.NotFoundByNameError(name) + return nil, nil, NotFoundByNameError(name) } items := kafkaList.GetItems() diff --git a/pkg/kafka/consumergroup/util.go b/pkg/kafkautil/consumergrouputil/util.go similarity index 97% rename from pkg/kafka/consumergroup/util.go rename to pkg/kafkautil/consumergrouputil/util.go index e64914c1d..b9f1e3d92 100644 --- a/pkg/kafka/consumergroup/util.go +++ b/pkg/kafkautil/consumergrouputil/util.go @@ -1,4 +1,4 @@ -package consumergroup +package consumergrouputil import ( kafkainstanceclient "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal/client" diff --git a/pkg/kafka/consumergroup/validators.go b/pkg/kafkautil/consumergrouputil/validators.go similarity index 81% rename from pkg/kafka/consumergroup/validators.go rename to pkg/kafkautil/consumergrouputil/validators.go index 2a8bca99f..a0ec7e3eb 100644 --- a/pkg/kafka/consumergroup/validators.go +++ b/pkg/kafkautil/consumergrouputil/validators.go @@ -1,12 +1,11 @@ -package consumergroup +package consumergrouputil import ( "regexp" "strconv" - "github.com/redhat-developer/app-services-cli/pkg/cmd/flag" - flagutil "github.com/redhat-developer/app-services-cli/pkg/cmdutil/flagutil" - "github.com/redhat-developer/app-services-cli/pkg/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" ) var timestampOffsetRegExp = regexp.MustCompile(`^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}-\d{2}:\d{2})$`) @@ -23,7 +22,7 @@ func (v *Validator) ValidateOffset(offset string) error { return nil } - return flag.InvalidValueError("output", v, ValidOffsets...) + return flagutil.InvalidValueError("output", v, ValidOffsets...) } // ValidateOffsetValue validates value for timestamp and absolute offset diff --git a/pkg/kafka/consumergroup/validators_test.go b/pkg/kafkautil/consumergrouputil/validators_test.go similarity index 97% rename from pkg/kafka/consumergroup/validators_test.go rename to pkg/kafkautil/consumergrouputil/validators_test.go index 8bcebb332..e801f7f05 100644 --- a/pkg/kafka/consumergroup/validators_test.go +++ b/pkg/kafkautil/consumergrouputil/validators_test.go @@ -1,9 +1,9 @@ -package consumergroup +package consumergrouputil import ( "testing" - "github.com/redhat-developer/app-services-cli/pkg/localize/goi18n" + "github.com/redhat-developer/app-services-cli/pkg/core/localize/goi18n" ) var validator *Validator diff --git a/pkg/api/kas/error.go b/pkg/kafkautil/error.go similarity index 51% rename from pkg/api/kas/error.go rename to pkg/kafkautil/error.go index fcf4112b4..c3e209e9e 100644 --- a/pkg/api/kas/error.go +++ b/pkg/kafkautil/error.go @@ -1,4 +1,4 @@ -package kas +package kafkautil import ( "errors" @@ -7,6 +7,13 @@ import ( kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" ) +var ( + NotFoundByIDErr error + NotFoundByNameErr error + IllegalSearchValueError error + InvalidNameErr error +) + const ( // ErrorCode7 Resource not found ErrorCode7 = "KAFKAS-MGMT-7" @@ -58,3 +65,35 @@ func IsErr(err error, code ServiceErrorCode) bool { return mappedErr.GetCode() == string(code) } + +func NotFoundByIDError(id string) error { + NotFoundByIDErr = fmt.Errorf(`Kafka instance with ID "%v" not found`, id) + return NotFoundByIDErr +} + +func NotFoundByNameError(name string) error { + NotFoundByNameErr = fmt.Errorf(`Kafka instance "%v" not found`, name) + return NotFoundByNameErr +} + +func InvalidSearchValueError(v string) error { + IllegalSearchValueError = fmt.Errorf(` + illegal search value "%v", search input must satisfy the following conditions: + + - must be of 1 or more characters + - must only consist of alphanumeric characters, '-', '_' and '%%' + `, v) + + return IllegalSearchValueError +} + +func InvalidNameError(v string) error { + InvalidNameErr = fmt.Errorf(`invalid Kafka instance name "%v". Valid names must satisfy the following conditions: + + - must be between 1 and 32 characters + - must only consist of lower case, alphanumeric characters and '-' + - must start with an alphabetic character + - must end with an alphanumeric character + `, v) + return InvalidNameErr +} diff --git a/pkg/kafka/interactive.go b/pkg/kafkautil/interactive.go similarity index 78% rename from pkg/kafka/interactive.go rename to pkg/kafkautil/interactive.go index a4811f972..3ad25a869 100644 --- a/pkg/kafka/interactive.go +++ b/pkg/kafkautil/interactive.go @@ -1,13 +1,14 @@ -package kafka +package kafkautil import ( "context" "fmt" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" + "github.com/AlecAivazis/survey/v2" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/localize" - "github.com/redhat-developer/app-services-cli/pkg/logging" kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" ) @@ -18,7 +19,7 @@ const ( func InteractiveSelect(ctx context.Context, connection connection.Connection, logger logging.Logger, localizer localize.Localizer) (*kafkamgmtclient.KafkaRequest, error) { api := connection.API() - response, _, err := api.Kafka().GetKafkas(ctx).Size(queryLimit).Execute() + response, _, err := api.KafkaMgmt().GetKafkas(ctx).Size(queryLimit).Execute() if err != nil { return nil, fmt.Errorf("unable to list Kafka instances: %w", err) } diff --git a/pkg/kafka/kafka_util.go b/pkg/kafkautil/kafka_util.go similarity index 83% rename from pkg/kafka/kafka_util.go rename to pkg/kafkautil/kafka_util.go index 19c29a533..a3d2a821f 100644 --- a/pkg/kafka/kafka_util.go +++ b/pkg/kafkautil/kafka_util.go @@ -1,4 +1,4 @@ -package kafka +package kafkautil import ( "context" @@ -7,11 +7,10 @@ import ( "regexp" "strings" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/common/commonerr" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/kafka/kafkaerr" - "github.com/redhat-developer/app-services-cli/pkg/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/errors" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" ) @@ -31,7 +30,7 @@ func (v *Validator) ValidateName(val interface{}) error { name, ok := val.(string) if !ok { - return commonerr.NewCastError(val, "string") + return errors.NewCastError(val, "string") } if len(name) < 1 || len(name) > 32 { @@ -44,7 +43,7 @@ func (v *Validator) ValidateName(val interface{}) error { return nil } - return kafkaerr.InvalidNameError(name) + return InvalidNameError(name) } // TransformKafkaRequestListItems modifies fields fields from a list of kafka instances @@ -81,7 +80,7 @@ func (v *Validator) ValidateSearchInput(val interface{}) error { search, ok := val.(string) if !ok { - return commonerr.NewCastError(val, "string") + return errors.NewCastError(val, "string") } matched := validSearchRegexp.MatchString(search) @@ -90,7 +89,7 @@ func (v *Validator) ValidateSearchInput(val interface{}) error { return nil } - return kafkaerr.InvalidSearchValueError(search) + return InvalidSearchValueError(search) } // ValidateNameIsAvailable checks if a kafka instance with the given name already exists @@ -104,7 +103,7 @@ func (v *Validator) ValidateNameIsAvailable(val interface{}) error { api := conn.API() - _, httpRes, _ := GetKafkaByName(context.Background(), api.Kafka(), name) + _, httpRes, _ := GetKafkaByName(context.Background(), api.KafkaMgmt(), name) if httpRes != nil { defer httpRes.Body.Close() diff --git a/pkg/kafka/kafka_util_test.go b/pkg/kafkautil/kafka_util_test.go similarity index 98% rename from pkg/kafka/kafka_util_test.go rename to pkg/kafkautil/kafka_util_test.go index 5598c48fd..8a7915cae 100644 --- a/pkg/kafka/kafka_util_test.go +++ b/pkg/kafkautil/kafka_util_test.go @@ -1,9 +1,10 @@ -package kafka +package kafkautil import ( "testing" - "github.com/redhat-developer/app-services-cli/pkg/localize/goi18n" + "github.com/redhat-developer/app-services-cli/pkg/core/localize/goi18n" + kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" ) diff --git a/pkg/kafka/topic/util.go b/pkg/kafkautil/topicutil/util.go similarity index 95% rename from pkg/kafka/topic/util.go rename to pkg/kafkautil/topicutil/util.go index 9906c8af4..bc05b6d5b 100644 --- a/pkg/kafka/topic/util.go +++ b/pkg/kafkautil/topicutil/util.go @@ -1,4 +1,4 @@ -package topic +package topicutil import ( "fmt" @@ -10,7 +10,6 @@ import ( var ( RetentionMsKey = "retention.ms" RetentionSizeKey = "retention.bytes" - PartitionsKey = "partitions" CleanupPolicy = "cleanup.policy" ) @@ -18,7 +17,7 @@ var ValidCleanupPolicies = []string{"delete", "compact", "compact,delete"} // CreateConfigEntries converts a key value map of config entries to an array of config entries func CreateConfigEntries(entryMap map[string]*string) *[]kafkainstanceclient.ConfigEntry { - entries := []kafkainstanceclient.ConfigEntry{} + var entries []kafkainstanceclient.ConfigEntry for key, value := range entryMap { if value != nil { // nolint:scopelint diff --git a/pkg/kafka/topic/util_test.go b/pkg/kafkautil/topicutil/util_test.go similarity index 98% rename from pkg/kafka/topic/util_test.go rename to pkg/kafkautil/topicutil/util_test.go index 6c87a0b9f..a09984a8d 100644 --- a/pkg/kafka/topic/util_test.go +++ b/pkg/kafkautil/topicutil/util_test.go @@ -1,4 +1,4 @@ -package topic +package topicutil import ( "reflect" diff --git a/pkg/kafka/topic/validators.go b/pkg/kafkautil/topicutil/validators.go similarity index 89% rename from pkg/kafka/topic/validators.go rename to pkg/kafkautil/topicutil/validators.go index 490dd552d..44508dcea 100644 --- a/pkg/kafka/topic/validators.go +++ b/pkg/kafkautil/topicutil/validators.go @@ -1,4 +1,4 @@ -package topic +package topicutil import ( "context" @@ -7,10 +7,10 @@ import ( "regexp" "strconv" - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/common/commonerr" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/localize" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/errors" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" ) const ( @@ -32,7 +32,7 @@ type Validator struct { func (v *Validator) ValidateName(val interface{}) error { name, ok := val.(string) if !ok { - return commonerr.NewCastError(val, "string") + return errors.NewCastError(val, "string") } if len(name) < 1 { @@ -57,7 +57,7 @@ func (v *Validator) ValidateName(val interface{}) error { func (v *Validator) ValidateSearchInput(val interface{}) error { search, ok := val.(string) if !ok { - return commonerr.NewCastError(val, "string") + return errors.NewCastError(val, "string") } matched, _ := regexp.Match(legalNameChars, []byte(search)) @@ -79,7 +79,7 @@ func (v *Validator) ValidatePartitionsN(val interface{}) error { partitions, err := strconv.Atoi(partitionsStr) if err != nil { - return commonerr.NewCastError(val, "int32") + return errors.NewCastError(val, "int32") } if partitions < minPartitions { @@ -108,7 +108,7 @@ func (v *Validator) ValidateMessageRetentionPeriod(val interface{}) error { retentionPeriodMs, err := strconv.Atoi(retentionPeriodMsStr) if err != nil { - return commonerr.NewCastError(val, "int") + return errors.NewCastError(val, "int") } if retentionPeriodMs < -1 { @@ -129,7 +129,7 @@ func (v *Validator) ValidateMessageRetentionSize(val interface{}) error { retentionPeriodBytes, err := strconv.Atoi(retentionSizeStr) if err != nil { - return commonerr.NewCastError(val, "int") + return errors.NewCastError(val, "int") } if retentionPeriodBytes < -1 { diff --git a/pkg/kafka/topic/validators_test.go b/pkg/kafkautil/topicutil/validators_test.go similarity index 98% rename from pkg/kafka/topic/validators_test.go rename to pkg/kafkautil/topicutil/validators_test.go index 4a5554127..7efb68fa6 100644 --- a/pkg/kafka/topic/validators_test.go +++ b/pkg/kafkautil/topicutil/validators_test.go @@ -1,9 +1,9 @@ -package topic +package topicutil import ( "testing" - "github.com/redhat-developer/app-services-cli/pkg/localize/goi18n" + "github.com/redhat-developer/app-services-cli/pkg/core/localize/goi18n" ) var validator *Validator diff --git a/pkg/kafka/cmdutil/util.go b/pkg/kafkautil/util.go similarity index 90% rename from pkg/kafka/cmdutil/util.go rename to pkg/kafkautil/util.go index 6a5923a22..039b6b30c 100644 --- a/pkg/kafka/cmdutil/util.go +++ b/pkg/kafkautil/util.go @@ -1,8 +1,8 @@ -package kafkacmdutil +package kafkautil import ( - "github.com/redhat-developer/app-services-cli/pkg/cmd/factory" - "github.com/redhat-developer/app-services-cli/pkg/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" "github.com/spf13/cobra" ) @@ -18,15 +18,18 @@ func RegisterNameFlagCompletionFunc(cmd *cobra.Command, f *factory.Factory) erro return validNames, directive } - req := conn.API().Kafka().GetKafkas(f.Context) + req := conn.API().KafkaMgmt().GetKafkas(f.Context) if toComplete != "" { searchQ := "name like " + toComplete + "%" req = req.Search(searchQ) } - kafkas, _, err := req.Execute() + kafkas, httpRes, err := req.Execute() if err != nil { return validNames, directive } + if httpRes != nil { + defer httpRes.Body.Close() + } items := kafkas.GetItems() for _, kafka := range items { @@ -48,7 +51,7 @@ func GetCloudProviderCompletionValues(f *factory.Factory) (validProviders []stri return validProviders, directive } - cloudProviderResponse, _, err := conn.API().Kafka().GetCloudProviders(f.Context).Execute() + cloudProviderResponse, _, err := conn.API().KafkaMgmt().GetCloudProviders(f.Context).Execute() if err != nil { return validProviders, directive } @@ -82,7 +85,7 @@ func FindCloudProviderByName(cloudProviders []kafkamgmtclient.CloudProvider, nam // GetEnabledCloudRegionIDs extracts and returns a slice of the unique IDs of all enabled regions func GetEnabledCloudRegionIDs(regions []kafkamgmtclient.CloudRegion) []string { - regionIDs := []string{} + var regionIDs []string for _, region := range regions { if region.GetEnabled() { regionIDs = append(regionIDs, region.GetId()) @@ -134,7 +137,7 @@ func FilterValidTopicNameArgs(f *factory.Factory, toComplete string) (validNames return validNames, directive } -// FilterValidConsumerGroups returns the list of consumer group IDs from the API +// FilterValidConsumerGroupIDs returns the list of consumer group IDs from the API func FilterValidConsumerGroupIDs(f *factory.Factory, toComplete string) (validIDs []string, directive cobra.ShellCompDirective) { validIDs = []string{} directive = cobra.ShellCompDirectiveNoSpace diff --git a/pkg/serviceaccount/credentials/credentials.go b/pkg/serviceaccountutil/credentials/credentials.go similarity index 98% rename from pkg/serviceaccount/credentials/credentials.go rename to pkg/serviceaccountutil/credentials/credentials.go index 211b30317..88ee73f26 100644 --- a/pkg/serviceaccount/credentials/credentials.go +++ b/pkg/serviceaccountutil/credentials/credentials.go @@ -3,13 +3,12 @@ package credentials import ( "errors" "fmt" + "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/color" "io/ioutil" "os" "path/filepath" "github.com/AlecAivazis/survey/v2" - "github.com/redhat-developer/app-services-cli/pkg/color" - "github.com/MakeNowJust/heredoc" ) diff --git a/pkg/serviceaccount/validation/validation.go b/pkg/serviceaccountutil/validation/validation.go similarity index 87% rename from pkg/serviceaccount/validation/validation.go rename to pkg/serviceaccountutil/validation/validation.go index 6d118f1ab..e0e510c2d 100644 --- a/pkg/serviceaccount/validation/validation.go +++ b/pkg/serviceaccountutil/validation/validation.go @@ -1,10 +1,9 @@ package validation import ( + "github.com/redhat-developer/app-services-cli/pkg/core/errors" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" "regexp" - - "github.com/redhat-developer/app-services-cli/pkg/common/commonerr" - "github.com/redhat-developer/app-services-cli/pkg/localize" ) const ( @@ -24,7 +23,7 @@ type Validator struct { func (v *Validator) ValidateShortDescription(val interface{}) error { name, ok := val.(string) if !ok { - return commonerr.NewCastError(val, "string") + return errors.NewCastError(val, "string") } if len(name) < minNameLength { @@ -46,7 +45,7 @@ func (v *Validator) ValidateShortDescription(val interface{}) error { func (v *Validator) ValidateUUID(val interface{}) error { id, ok := val.(string) if !ok { - return commonerr.NewCastError(val, "string") + return errors.NewCastError(val, "string") } matched, _ := regexp.Match(legalUUID, []byte(id)) diff --git a/pkg/serviceaccount/validation/validation_test.go b/pkg/serviceaccountutil/validation/validation_test.go similarity index 97% rename from pkg/serviceaccount/validation/validation_test.go rename to pkg/serviceaccountutil/validation/validation_test.go index b64784d73..69f24678f 100644 --- a/pkg/serviceaccount/validation/validation_test.go +++ b/pkg/serviceaccountutil/validation/validation_test.go @@ -3,7 +3,7 @@ package validation import ( "testing" - "github.com/redhat-developer/app-services-cli/pkg/localize/goi18n" + "github.com/redhat-developer/app-services-cli/pkg/core/localize/goi18n" ) var validator *Validator diff --git a/pkg/serviceregistry/api.go b/pkg/serviceregistryutil/api.go similarity index 97% rename from pkg/serviceregistry/api.go rename to pkg/serviceregistryutil/api.go index 705b117ed..11f6548ea 100644 --- a/pkg/serviceregistry/api.go +++ b/pkg/serviceregistryutil/api.go @@ -1,4 +1,4 @@ -package serviceregistry +package serviceregistryutil import ( "context" diff --git a/pkg/serviceregistry/registryinstanceerror/error.go b/pkg/serviceregistryutil/error.go similarity index 63% rename from pkg/serviceregistry/registryinstanceerror/error.go rename to pkg/serviceregistryutil/error.go index 3285e3b58..c6b45b2c4 100644 --- a/pkg/serviceregistry/registryinstanceerror/error.go +++ b/pkg/serviceregistryutil/error.go @@ -1,4 +1,4 @@ -package registryinstanceerror +package serviceregistryutil import ( "errors" @@ -19,8 +19,8 @@ func (e *Error) Unwrap() error { return e.Err } -// GetAPIError gets a strongly typed error from an error -func GetAPIError(err error) (e registryinstanceclient.Error, ok bool) { +// GetInstanceAPIError gets a strongly typed error from an error +func GetInstanceAPIError(err error) (e registryinstanceclient.Error, ok bool) { var apiError registryinstanceclient.GenericOpenAPIError if ok = errors.As(err, &apiError); ok { @@ -32,9 +32,9 @@ func GetAPIError(err error) (e registryinstanceclient.Error, ok bool) { return e, ok } -// TransformError code contains message that can be returned to the user -func TransformError(err error) error { - mappedErr, ok := GetAPIError(err) +// TransformInstanceError code contains message that can be returned to the user +func TransformInstanceError(err error) error { + mappedErr, ok := GetInstanceAPIError(err) if !ok { return err } diff --git a/pkg/serviceregistry/interactive.go b/pkg/serviceregistryutil/interactive.go similarity index 87% rename from pkg/serviceregistry/interactive.go rename to pkg/serviceregistryutil/interactive.go index 5384cce80..b613cb8ea 100644 --- a/pkg/serviceregistry/interactive.go +++ b/pkg/serviceregistryutil/interactive.go @@ -1,12 +1,11 @@ -package serviceregistry +package serviceregistryutil import ( "context" "fmt" - "github.com/AlecAivazis/survey/v2" - "github.com/redhat-developer/app-services-cli/pkg/connection" - "github.com/redhat-developer/app-services-cli/pkg/logging" + "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/logging" srsmgmtv1 "github.com/redhat-developer/app-services-sdk-go/registrymgmt/apiv1/client" ) diff --git a/pkg/serviceregistry/registry_util.go b/pkg/serviceregistryutil/registry_util.go similarity index 64% rename from pkg/serviceregistry/registry_util.go rename to pkg/serviceregistryutil/registry_util.go index 172f7e22d..787a1ed47 100644 --- a/pkg/serviceregistry/registry_util.go +++ b/pkg/serviceregistryutil/registry_util.go @@ -1,10 +1,10 @@ -package serviceregistry +package serviceregistryutil import ( "errors" "regexp" - "github.com/redhat-developer/app-services-cli/pkg/common/commonerr" + coreErrors "github.com/redhat-developer/app-services-cli/pkg/core/errors" ) var validNameRegexp = regexp.MustCompile(`^[a-z]([-a-z0-9]*[a-z0-9])?$`) @@ -14,11 +14,11 @@ func ValidateName(val interface{}) error { name, ok := val.(string) if !ok { - return commonerr.NewCastError(val, "string") + return coreErrors.NewCastError(val, "string") } if len(name) < 1 || len(name) > 32 { - return errors.New("serviceRegistry instance name must be between 1 and 32 characters") + return errors.New("service registry instance name must be between 1 and 32 characters") } matched := validNameRegexp.MatchString(name) From 034c882363a517859c39c6bbd66892d82ccd0215 Mon Sep 17 00:00:00 2001 From: Enda Phelan Date: Wed, 5 Jan 2022 09:20:04 +0000 Subject: [PATCH 2/4] revert api rename --- Makefile | 2 +- pkg/{apis => api}/ams/amsclient/.gitignore | 0 .../ams/amsclient/.openapi-generator-ignore | 0 .../ams/amsclient/.openapi-generator/FILES | 0 .../ams/amsclient/.openapi-generator/VERSION | 1 + pkg/{apis => api}/ams/amsclient/.travis.yml | 0 pkg/{apis => api}/ams/amsclient/README.md | 2 +- .../ams/amsclient/api/openapi.yaml | 0 .../ams/amsclient/api_default.go | 3917 +++++++++-------- pkg/{apis => api}/ams/amsclient/client.go | 27 +- .../ams/amsclient/configuration.go | 33 +- .../ams/amsclient/default_api_mock.go | 2482 +++++------ .../ams/amsclient/docs/AccessReview.md | 0 .../amsclient/docs/AccessReviewResponse.md | 0 .../ams/amsclient/docs/AccessTokenCfg.md | 0 .../ams/amsclient/docs/Account.md | 0 .../ams/amsclient/docs/AccountAllOf.md | 0 .../ams/amsclient/docs/AccountList.md | 0 .../ams/amsclient/docs/AccountListAllOf.md | 0 .../ams/amsclient/docs/AccountPatchRequest.md | 0 .../ams/amsclient/docs/AccountReference.md | 0 .../amsclient/docs/AccountReferenceAllOf.md | 0 .../ams/amsclient/docs/Capability.md | 0 .../ams/amsclient/docs/CapabilityAllOf.md | 0 .../ams/amsclient/docs/CapabilityReview.md | 0 .../amsclient/docs/CapabilityReviewRequest.md | 0 .../docs/ClusterAuthorizationRequest.md | 0 .../docs/ClusterAuthorizationResponse.md | 0 .../ams/amsclient/docs/ClusterMetricsNodes.md | 0 .../docs/ClusterRegistrationRequest.md | 0 .../docs/ClusterRegistrationResponse.md | 0 .../ams/amsclient/docs/ClusterResource.md | 0 .../amsclient/docs/ClusterResourceTotal.md | 0 .../ams/amsclient/docs/ClusterUpgrade.md | 0 .../ams/amsclient/docs/DefaultApi.md | 0 .../amsclient/docs/EphemeralResourceQuota.md | 0 pkg/{apis => api}/ams/amsclient/docs/Error.md | 0 .../ams/amsclient/docs/ErrorAllOf.md | 0 .../ams/amsclient/docs/ErrorList.md | 0 .../ams/amsclient/docs/ErrorListAllOf.md | 0 .../ams/amsclient/docs/ExcessResource.md | 0 .../ams/amsclient/docs/ExcessResourceAllOf.md | 0 .../ams/amsclient/docs/ExportControlReview.md | 0 .../docs/ExportControlReviewRequest.md | 0 .../ams/amsclient/docs/FeatureToggle.md | 0 .../ams/amsclient/docs/FeatureToggleAllOf.md | 0 .../docs/FeatureToggleQueryRequest.md | 0 .../docs/FeatureToggleQueryRequestAllOf.md | 0 pkg/{apis => api}/ams/amsclient/docs/Label.md | 0 .../ams/amsclient/docs/LabelAllOf.md | 0 .../ams/amsclient/docs/LabelList.md | 0 .../ams/amsclient/docs/LabelListAllOf.md | 0 pkg/{apis => api}/ams/amsclient/docs/List.md | 0 .../ams/amsclient/docs/Metric.md | 0 .../ams/amsclient/docs/MetricAllOf.md | 0 .../ams/amsclient/docs/MetricsList.md | 0 .../ams/amsclient/docs/MetricsListAllOf.md | 0 .../docs/NotificationContactCreateRequest.md | 0 .../ams/amsclient/docs/NotificationRequest.md | 0 .../ams/amsclient/docs/ObjectReference.md | 0 .../ams/amsclient/docs/OneMetric.md | 0 .../ams/amsclient/docs/Organization.md | 0 .../ams/amsclient/docs/OrganizationAllOf.md | 0 .../ams/amsclient/docs/OrganizationList.md | 0 .../amsclient/docs/OrganizationListAllOf.md | 0 .../docs/OrganizationPatchRequest.md | 0 .../ams/amsclient/docs/Permission.md | 0 .../ams/amsclient/docs/PermissionAllOf.md | 0 .../ams/amsclient/docs/PermissionList.md | 0 .../ams/amsclient/docs/PermissionListAllOf.md | 0 pkg/{apis => api}/ams/amsclient/docs/Plan.md | 0 .../ams/amsclient/docs/PlanAllOf.md | 0 .../ams/amsclient/docs/PlanList.md | 0 .../ams/amsclient/docs/PlanListAllOf.md | 0 .../ams/amsclient/docs/PullSecretRequest.md | 0 .../ams/amsclient/docs/QuotaCost.md | 0 .../ams/amsclient/docs/QuotaCostAllOf.md | 0 .../ams/amsclient/docs/QuotaCostList.md | 0 .../ams/amsclient/docs/QuotaCostListAllOf.md | 0 .../ams/amsclient/docs/QuotaSummary.md | 0 .../ams/amsclient/docs/QuotaSummaryAllOf.md | 0 .../ams/amsclient/docs/QuotaSummaryList.md | 0 .../amsclient/docs/QuotaSummaryListAllOf.md | 0 .../ams/amsclient/docs/Registry.md | 0 .../ams/amsclient/docs/RegistryAllOf.md | 0 .../amsclient/docs/RegistryCreateRequest.md | 0 .../ams/amsclient/docs/RegistryCredential.md | 0 .../amsclient/docs/RegistryCredentialAllOf.md | 0 .../amsclient/docs/RegistryCredentialList.md | 0 .../docs/RegistryCredentialListAllOf.md | 0 .../docs/RegistryCredentialPatchRequest.md | 0 .../ams/amsclient/docs/RegistryList.md | 0 .../ams/amsclient/docs/RegistryListAllOf.md | 0 .../ams/amsclient/docs/RegistryRequest.md | 0 .../ams/amsclient/docs/RelatedResource.md | 0 .../amsclient/docs/RelatedResourceAllOf.md | 0 .../ams/amsclient/docs/ReservedResource.md | 0 .../amsclient/docs/ReservedResourceAllOf.md | 0 .../amsclient/docs/ReservedResourceList.md | 0 .../docs/ReservedResourceListAllOf.md | 0 .../ams/amsclient/docs/ResourceQuota.md | 0 .../ams/amsclient/docs/ResourceQuotaAllOf.md | 0 .../ams/amsclient/docs/ResourceQuotaList.md | 0 .../amsclient/docs/ResourceQuotaListAllOf.md | 0 .../amsclient/docs/ResourceQuotaRequest.md | 0 .../ams/amsclient/docs/ResourceReview.md | 0 .../amsclient/docs/ResourceReviewRequest.md | 0 pkg/{apis => api}/ams/amsclient/docs/Role.md | 0 .../ams/amsclient/docs/RoleAllOf.md | 0 .../ams/amsclient/docs/RoleBinding.md | 0 .../ams/amsclient/docs/RoleBindingAllOf.md | 0 .../docs/RoleBindingCreateRequest.md | 0 .../ams/amsclient/docs/RoleBindingList.md | 0 .../amsclient/docs/RoleBindingListAllOf.md | 0 .../ams/amsclient/docs/RoleBindingRequest.md | 0 .../ams/amsclient/docs/RoleList.md | 0 .../ams/amsclient/docs/RoleListAllOf.md | 0 pkg/{apis => api}/ams/amsclient/docs/SKU.md | 0 .../ams/amsclient/docs/SKUAllOf.md | 0 .../ams/amsclient/docs/SelfAccessReview.md | 0 .../ams/amsclient/docs/SelfResourceReview.md | 0 .../docs/SelfResourceReviewRequest.md | 0 .../ams/amsclient/docs/SelfTermsReview.md | 0 .../ams/amsclient/docs/SkuList.md | 0 .../ams/amsclient/docs/SkuListAllOf.md | 0 .../ams/amsclient/docs/SkuRules.md | 0 .../ams/amsclient/docs/SkuRulesAllOf.md | 0 .../ams/amsclient/docs/SkuRulesList.md | 0 .../ams/amsclient/docs/SkuRulesListAllOf.md | 0 .../ams/amsclient/docs/Subscription.md | 0 .../ams/amsclient/docs/SubscriptionAllOf.md | 0 .../docs/SubscriptionCreateRequest.md | 0 .../ams/amsclient/docs/SubscriptionList.md | 0 .../amsclient/docs/SubscriptionListAllOf.md | 0 .../docs/SubscriptionPatchRequest.md | 0 .../ams/amsclient/docs/Summary.md | 0 .../ams/amsclient/docs/SummaryAllOf.md | 0 .../ams/amsclient/docs/SummaryMetrics.md | 0 .../ams/amsclient/docs/SummaryMetricsAllOf.md | 0 .../ams/amsclient/docs/SummaryVector.md | 0 .../ams/amsclient/docs/SummaryVectorAllOf.md | 0 .../docs/SupportCasesCreatedResponse.md | 0 .../ams/amsclient/docs/SupportCasesRequest.md | 0 .../ams/amsclient/docs/TemplateParameter.md | 0 .../ams/amsclient/docs/TermsReview.md | 0 .../ams/amsclient/docs/TermsReviewResponse.md | 0 .../docs/TokenAuthorizationRequest.md | 0 .../docs/TokenAuthorizationResponse.md | 0 pkg/{apis => api}/ams/amsclient/git_push.sh | 7 +- .../ams/amsclient/model_access_review.go | 34 +- .../amsclient/model_access_review_response.go | 28 +- .../ams/amsclient/model_access_token_cfg.go | 16 +- .../ams/amsclient/model_account.go | 50 +- .../ams/amsclient/model_account_all_of.go | 44 +- .../ams/amsclient/model_account_list.go | 32 +- .../amsclient/model_account_list_all_of.go | 14 +- .../amsclient/model_account_patch_request.go | 26 +- .../ams/amsclient/model_account_reference.go | 24 +- .../model_account_reference_all_of.go | 18 +- .../ams/amsclient/model_capability.go | 32 +- .../ams/amsclient/model_capability_all_of.go | 26 +- .../ams/amsclient/model_capability_review.go | 16 +- .../model_capability_review_request.go | 32 +- .../model_cluster_authorization_request.go | 46 +- .../model_cluster_authorization_response.go | 24 +- .../amsclient/model_cluster_metrics_nodes.go | 20 +- .../model_cluster_registration_request.go | 16 +- .../model_cluster_registration_response.go | 18 +- .../ams/amsclient/model_cluster_resource.go | 26 +- .../amsclient/model_cluster_resource_total.go | 20 +- .../ams/amsclient/model_cluster_upgrade.go | 20 +- .../model_ephemeral_resource_quota.go | 26 +- .../ams/amsclient/model_error.go | 24 +- .../ams/amsclient/model_error_all_of.go | 18 +- .../ams/amsclient/model_error_list.go | 32 +- .../ams/amsclient/model_error_list_all_of.go | 14 +- .../ams/amsclient/model_excess_resource.go | 32 +- .../amsclient/model_excess_resource_all_of.go | 26 +- .../amsclient/model_export_control_review.go | 16 +- .../model_export_control_review_request.go | 18 +- .../ams/amsclient/model_feature_toggle.go | 24 +- .../amsclient/model_feature_toggle_all_of.go | 16 +- .../model_feature_toggle_query_request.go | 16 +- ...del_feature_toggle_query_request_all_of.go | 16 +- .../ams/amsclient/model_label.go | 44 +- .../ams/amsclient/model_label_all_of.go | 38 +- .../ams/amsclient/model_label_list.go | 32 +- .../ams/amsclient/model_label_list_all_of.go | 14 +- pkg/{apis => api}/ams/amsclient/model_list.go | 30 +- .../ams/amsclient/model_metric.go | 26 +- .../ams/amsclient/model_metric_all_of.go | 22 +- .../ams/amsclient/model_metrics_list.go | 32 +- .../amsclient/model_metrics_list_all_of.go | 14 +- ...del_notification_contact_create_request.go | 14 +- .../amsclient/model_notification_request.go | 34 +- .../ams/amsclient/model_object_reference.go | 16 +- .../ams/amsclient/model_one_metric.go | 104 +- .../ams/amsclient/model_organization.go | 32 +- .../amsclient/model_organization_all_of.go | 26 +- .../ams/amsclient/model_organization_list.go | 32 +- .../model_organization_list_all_of.go | 14 +- .../model_organization_patch_request.go | 18 +- .../ams/amsclient/model_permission.go | 16 +- .../ams/amsclient/model_permission_all_of.go | 16 +- .../ams/amsclient/model_permission_list.go | 32 +- .../amsclient/model_permission_list_all_of.go | 14 +- pkg/{apis => api}/ams/amsclient/model_plan.go | 24 +- .../ams/amsclient/model_plan_all_of.go | 18 +- .../ams/amsclient/model_plan_list.go | 32 +- .../ams/amsclient/model_plan_list_all_of.go | 14 +- .../amsclient/model_pull_secret_request.go | 16 +- .../ams/amsclient/model_quota_cost.go | 34 +- .../ams/amsclient/model_quota_cost_all_of.go | 28 +- .../ams/amsclient/model_quota_cost_list.go | 32 +- .../amsclient/model_quota_cost_list_all_of.go | 14 +- .../ams/amsclient/model_quota_summary.go | 46 +- .../amsclient/model_quota_summary_all_of.go | 40 +- .../ams/amsclient/model_quota_summary_list.go | 32 +- .../model_quota_summary_list_all_of.go | 14 +- .../ams/amsclient/model_registry.go | 36 +- .../ams/amsclient/model_registry_all_of.go | 30 +- .../model_registry_create_request.go | 32 +- .../amsclient/model_registry_credential.go | 34 +- .../model_registry_credential_all_of.go | 28 +- .../model_registry_credential_list.go | 32 +- .../model_registry_credential_list_all_of.go | 14 +- ...model_registry_credential_patch_request.go | 22 +- .../ams/amsclient/model_registry_list.go | 32 +- .../amsclient/model_registry_list_all_of.go | 14 +- .../ams/amsclient/model_registry_request.go | 26 +- .../ams/amsclient/model_related_resource.go | 52 +- .../model_related_resource_all_of.go | 46 +- .../ams/amsclient/model_reserved_resource.go | 42 +- .../model_reserved_resource_all_of.go | 36 +- .../amsclient/model_reserved_resource_list.go | 32 +- .../model_reserved_resource_list_all_of.go | 14 +- .../ams/amsclient/model_resource_quota.go | 50 +- .../amsclient/model_resource_quota_all_of.go | 44 +- .../amsclient/model_resource_quota_list.go | 32 +- .../model_resource_quota_list_all_of.go | 14 +- .../amsclient/model_resource_quota_request.go | 24 +- .../ams/amsclient/model_resource_review.go | 38 +- .../model_resource_review_request.go | 18 +- pkg/{apis => api}/ams/amsclient/model_role.go | 22 +- .../ams/amsclient/model_role_all_of.go | 16 +- .../ams/amsclient/model_role_binding.go | 36 +- .../amsclient/model_role_binding_all_of.go | 30 +- .../model_role_binding_create_request.go | 28 +- .../ams/amsclient/model_role_binding_list.go | 32 +- .../model_role_binding_list_all_of.go | 14 +- .../amsclient/model_role_binding_request.go | 22 +- .../ams/amsclient/model_role_list.go | 32 +- .../ams/amsclient/model_role_list_all_of.go | 14 +- .../ams/amsclient/model_self_access_review.go | 26 +- .../amsclient/model_self_resource_review.go | 34 +- .../model_self_resource_review_request.go | 16 +- .../ams/amsclient/model_self_terms_review.go | 16 +- pkg/{apis => api}/ams/amsclient/model_sku.go | 32 +- .../ams/amsclient/model_sku_all_of.go | 28 +- .../ams/amsclient/model_sku_list.go | 34 +- .../ams/amsclient/model_sku_list_all_of.go | 14 +- .../ams/amsclient/model_sku_rules.go | 24 +- .../ams/amsclient/model_sku_rules_all_of.go | 18 +- .../ams/amsclient/model_sku_rules_list.go | 32 +- .../amsclient/model_sku_rules_list_all_of.go | 14 +- .../ams/amsclient/model_subscription.go | 82 +- .../amsclient/model_subscription_all_of.go | 76 +- .../model_subscription_create_request.go | 28 +- .../ams/amsclient/model_subscription_list.go | 32 +- .../model_subscription_list_all_of.go | 14 +- .../model_subscription_patch_request.go | 62 +- .../ams/amsclient/model_summary.go | 24 +- .../ams/amsclient/model_summary_all_of.go | 18 +- .../ams/amsclient/model_summary_metrics.go | 16 +- .../amsclient/model_summary_metrics_all_of.go | 16 +- .../ams/amsclient/model_summary_vector.go | 18 +- .../amsclient/model_summary_vector_all_of.go | 18 +- .../model_support_cases_created_response.go | 30 +- .../amsclient/model_support_cases_request.go | 44 +- .../ams/amsclient/model_template_parameter.go | 20 +- .../ams/amsclient/model_terms_review.go | 22 +- .../amsclient/model_terms_review_response.go | 32 +- .../model_token_authorization_request.go | 14 +- .../model_token_authorization_response.go | 14 +- pkg/{apis => api}/ams/amsclient/response.go | 14 +- pkg/{apis => api}/ams/amsclient/utils.go | 12 +- pkg/{apis => api}/apis.go | 0 pkg/{apis => api}/rbac/api.go | 0 pkg/{apis => api}/rbac/rbacutil/api_util.go | 0 .../ams/amsclient/.openapi-generator/VERSION | 1 - 290 files changed, 4952 insertions(+), 5226 deletions(-) rename pkg/{apis => api}/ams/amsclient/.gitignore (100%) rename pkg/{apis => api}/ams/amsclient/.openapi-generator-ignore (100%) rename pkg/{apis => api}/ams/amsclient/.openapi-generator/FILES (100%) create mode 100644 pkg/api/ams/amsclient/.openapi-generator/VERSION rename pkg/{apis => api}/ams/amsclient/.travis.yml (100%) rename pkg/{apis => api}/ams/amsclient/README.md (99%) rename pkg/{apis => api}/ams/amsclient/api/openapi.yaml (100%) rename pkg/{apis => api}/ams/amsclient/api_default.go (81%) rename pkg/{apis => api}/ams/amsclient/client.go (97%) rename pkg/{apis => api}/ams/amsclient/configuration.go (93%) rename pkg/{apis => api}/ams/amsclient/default_api_mock.go (81%) rename pkg/{apis => api}/ams/amsclient/docs/AccessReview.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/AccessReviewResponse.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/AccessTokenCfg.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/Account.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/AccountAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/AccountList.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/AccountListAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/AccountPatchRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/AccountReference.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/AccountReferenceAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/Capability.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/CapabilityAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/CapabilityReview.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/CapabilityReviewRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ClusterAuthorizationRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ClusterAuthorizationResponse.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ClusterMetricsNodes.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ClusterRegistrationRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ClusterRegistrationResponse.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ClusterResource.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ClusterResourceTotal.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ClusterUpgrade.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/DefaultApi.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/EphemeralResourceQuota.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/Error.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ErrorAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ErrorList.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ErrorListAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ExcessResource.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ExcessResourceAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ExportControlReview.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ExportControlReviewRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/FeatureToggle.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/FeatureToggleAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/FeatureToggleQueryRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/FeatureToggleQueryRequestAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/Label.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/LabelAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/LabelList.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/LabelListAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/List.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/Metric.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/MetricAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/MetricsList.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/MetricsListAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/NotificationContactCreateRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/NotificationRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ObjectReference.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/OneMetric.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/Organization.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/OrganizationAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/OrganizationList.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/OrganizationListAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/OrganizationPatchRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/Permission.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/PermissionAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/PermissionList.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/PermissionListAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/Plan.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/PlanAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/PlanList.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/PlanListAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/PullSecretRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/QuotaCost.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/QuotaCostAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/QuotaCostList.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/QuotaCostListAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/QuotaSummary.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/QuotaSummaryAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/QuotaSummaryList.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/QuotaSummaryListAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/Registry.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RegistryAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RegistryCreateRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RegistryCredential.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RegistryCredentialAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RegistryCredentialList.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RegistryCredentialListAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RegistryCredentialPatchRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RegistryList.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RegistryListAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RegistryRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RelatedResource.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RelatedResourceAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ReservedResource.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ReservedResourceAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ReservedResourceList.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ReservedResourceListAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ResourceQuota.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ResourceQuotaAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ResourceQuotaList.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ResourceQuotaListAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ResourceQuotaRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ResourceReview.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/ResourceReviewRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/Role.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RoleAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RoleBinding.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RoleBindingAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RoleBindingCreateRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RoleBindingList.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RoleBindingListAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RoleBindingRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RoleList.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/RoleListAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SKU.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SKUAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SelfAccessReview.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SelfResourceReview.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SelfResourceReviewRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SelfTermsReview.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SkuList.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SkuListAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SkuRules.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SkuRulesAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SkuRulesList.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SkuRulesListAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/Subscription.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SubscriptionAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SubscriptionCreateRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SubscriptionList.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SubscriptionListAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SubscriptionPatchRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/Summary.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SummaryAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SummaryMetrics.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SummaryMetricsAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SummaryVector.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SummaryVectorAllOf.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SupportCasesCreatedResponse.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/SupportCasesRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/TemplateParameter.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/TermsReview.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/TermsReviewResponse.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/TokenAuthorizationRequest.md (100%) rename pkg/{apis => api}/ams/amsclient/docs/TokenAuthorizationResponse.md (100%) rename pkg/{apis => api}/ams/amsclient/git_push.sh (87%) rename pkg/{apis => api}/ams/amsclient/model_access_review.go (93%) rename pkg/{apis => api}/ams/amsclient/model_access_review_response.go (95%) rename pkg/{apis => api}/ams/amsclient/model_access_token_cfg.go (95%) rename pkg/{apis => api}/ams/amsclient/model_account.go (93%) rename pkg/{apis => api}/ams/amsclient/model_account_all_of.go (93%) rename pkg/{apis => api}/ams/amsclient/model_account_list.go (93%) rename pkg/{apis => api}/ams/amsclient/model_account_list_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_account_patch_request.go (95%) rename pkg/{apis => api}/ams/amsclient/model_account_reference.go (95%) rename pkg/{apis => api}/ams/amsclient/model_account_reference_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_capability.go (93%) rename pkg/{apis => api}/ams/amsclient/model_capability_all_of.go (93%) rename pkg/{apis => api}/ams/amsclient/model_capability_review.go (95%) rename pkg/{apis => api}/ams/amsclient/model_capability_review_request.go (93%) rename pkg/{apis => api}/ams/amsclient/model_cluster_authorization_request.go (93%) rename pkg/{apis => api}/ams/amsclient/model_cluster_authorization_response.go (94%) rename pkg/{apis => api}/ams/amsclient/model_cluster_metrics_nodes.go (95%) rename pkg/{apis => api}/ams/amsclient/model_cluster_registration_request.go (96%) rename pkg/{apis => api}/ams/amsclient/model_cluster_registration_response.go (96%) rename pkg/{apis => api}/ams/amsclient/model_cluster_resource.go (92%) rename pkg/{apis => api}/ams/amsclient/model_cluster_resource_total.go (94%) rename pkg/{apis => api}/ams/amsclient/model_cluster_upgrade.go (95%) rename pkg/{apis => api}/ams/amsclient/model_ephemeral_resource_quota.go (95%) rename pkg/{apis => api}/ams/amsclient/model_error.go (95%) rename pkg/{apis => api}/ams/amsclient/model_error_all_of.go (95%) rename pkg/{apis => api}/ams/amsclient/model_error_list.go (93%) rename pkg/{apis => api}/ams/amsclient/model_error_list_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_excess_resource.go (94%) rename pkg/{apis => api}/ams/amsclient/model_excess_resource_all_of.go (94%) rename pkg/{apis => api}/ams/amsclient/model_export_control_review.go (95%) rename pkg/{apis => api}/ams/amsclient/model_export_control_review_request.go (95%) rename pkg/{apis => api}/ams/amsclient/model_feature_toggle.go (94%) rename pkg/{apis => api}/ams/amsclient/model_feature_toggle_all_of.go (95%) rename pkg/{apis => api}/ams/amsclient/model_feature_toggle_query_request.go (95%) rename pkg/{apis => api}/ams/amsclient/model_feature_toggle_query_request_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_label.go (93%) rename pkg/{apis => api}/ams/amsclient/model_label_all_of.go (93%) rename pkg/{apis => api}/ams/amsclient/model_label_list.go (93%) rename pkg/{apis => api}/ams/amsclient/model_label_list_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_list.go (92%) rename pkg/{apis => api}/ams/amsclient/model_metric.go (94%) rename pkg/{apis => api}/ams/amsclient/model_metric_all_of.go (95%) rename pkg/{apis => api}/ams/amsclient/model_metrics_list.go (93%) rename pkg/{apis => api}/ams/amsclient/model_metrics_list_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_notification_contact_create_request.go (97%) rename pkg/{apis => api}/ams/amsclient/model_notification_request.go (92%) rename pkg/{apis => api}/ams/amsclient/model_object_reference.go (96%) rename pkg/{apis => api}/ams/amsclient/model_one_metric.go (89%) rename pkg/{apis => api}/ams/amsclient/model_organization.go (94%) rename pkg/{apis => api}/ams/amsclient/model_organization_all_of.go (94%) rename pkg/{apis => api}/ams/amsclient/model_organization_list.go (93%) rename pkg/{apis => api}/ams/amsclient/model_organization_list_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_organization_patch_request.go (96%) rename pkg/{apis => api}/ams/amsclient/model_permission.go (95%) rename pkg/{apis => api}/ams/amsclient/model_permission_all_of.go (95%) rename pkg/{apis => api}/ams/amsclient/model_permission_list.go (93%) rename pkg/{apis => api}/ams/amsclient/model_permission_list_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_plan.go (95%) rename pkg/{apis => api}/ams/amsclient/model_plan_all_of.go (95%) rename pkg/{apis => api}/ams/amsclient/model_plan_list.go (93%) rename pkg/{apis => api}/ams/amsclient/model_plan_list_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_pull_secret_request.go (95%) rename pkg/{apis => api}/ams/amsclient/model_quota_cost.go (93%) rename pkg/{apis => api}/ams/amsclient/model_quota_cost_all_of.go (93%) rename pkg/{apis => api}/ams/amsclient/model_quota_cost_list.go (93%) rename pkg/{apis => api}/ams/amsclient/model_quota_cost_list_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_quota_summary.go (92%) rename pkg/{apis => api}/ams/amsclient/model_quota_summary_all_of.go (92%) rename pkg/{apis => api}/ams/amsclient/model_quota_summary_list.go (93%) rename pkg/{apis => api}/ams/amsclient/model_quota_summary_list_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_registry.go (94%) rename pkg/{apis => api}/ams/amsclient/model_registry_all_of.go (94%) rename pkg/{apis => api}/ams/amsclient/model_registry_create_request.go (94%) rename pkg/{apis => api}/ams/amsclient/model_registry_credential.go (93%) rename pkg/{apis => api}/ams/amsclient/model_registry_credential_all_of.go (93%) rename pkg/{apis => api}/ams/amsclient/model_registry_credential_list.go (93%) rename pkg/{apis => api}/ams/amsclient/model_registry_credential_list_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_registry_credential_patch_request.go (95%) rename pkg/{apis => api}/ams/amsclient/model_registry_list.go (93%) rename pkg/{apis => api}/ams/amsclient/model_registry_list_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_registry_request.go (94%) rename pkg/{apis => api}/ams/amsclient/model_related_resource.go (92%) rename pkg/{apis => api}/ams/amsclient/model_related_resource_all_of.go (92%) rename pkg/{apis => api}/ams/amsclient/model_reserved_resource.go (93%) rename pkg/{apis => api}/ams/amsclient/model_reserved_resource_all_of.go (93%) rename pkg/{apis => api}/ams/amsclient/model_reserved_resource_list.go (93%) rename pkg/{apis => api}/ams/amsclient/model_reserved_resource_list_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_resource_quota.go (92%) rename pkg/{apis => api}/ams/amsclient/model_resource_quota_all_of.go (93%) rename pkg/{apis => api}/ams/amsclient/model_resource_quota_list.go (93%) rename pkg/{apis => api}/ams/amsclient/model_resource_quota_list_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_resource_quota_request.go (94%) rename pkg/{apis => api}/ams/amsclient/model_resource_review.go (93%) rename pkg/{apis => api}/ams/amsclient/model_resource_review_request.go (95%) rename pkg/{apis => api}/ams/amsclient/model_role.go (94%) rename pkg/{apis => api}/ams/amsclient/model_role_all_of.go (95%) rename pkg/{apis => api}/ams/amsclient/model_role_binding.go (93%) rename pkg/{apis => api}/ams/amsclient/model_role_binding_all_of.go (94%) rename pkg/{apis => api}/ams/amsclient/model_role_binding_create_request.go (95%) rename pkg/{apis => api}/ams/amsclient/model_role_binding_list.go (93%) rename pkg/{apis => api}/ams/amsclient/model_role_binding_list_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_role_binding_request.go (96%) rename pkg/{apis => api}/ams/amsclient/model_role_list.go (93%) rename pkg/{apis => api}/ams/amsclient/model_role_list_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_self_access_review.go (95%) rename pkg/{apis => api}/ams/amsclient/model_self_resource_review.go (93%) rename pkg/{apis => api}/ams/amsclient/model_self_resource_review_request.go (96%) rename pkg/{apis => api}/ams/amsclient/model_self_terms_review.go (95%) rename pkg/{apis => api}/ams/amsclient/model_sku.go (91%) rename pkg/{apis => api}/ams/amsclient/model_sku_all_of.go (92%) rename pkg/{apis => api}/ams/amsclient/model_sku_list.go (92%) rename pkg/{apis => api}/ams/amsclient/model_sku_list_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_sku_rules.go (95%) rename pkg/{apis => api}/ams/amsclient/model_sku_rules_all_of.go (95%) rename pkg/{apis => api}/ams/amsclient/model_sku_rules_list.go (93%) rename pkg/{apis => api}/ams/amsclient/model_sku_rules_list_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_subscription.go (94%) rename pkg/{apis => api}/ams/amsclient/model_subscription_all_of.go (94%) rename pkg/{apis => api}/ams/amsclient/model_subscription_create_request.go (94%) rename pkg/{apis => api}/ams/amsclient/model_subscription_list.go (93%) rename pkg/{apis => api}/ams/amsclient/model_subscription_list_all_of.go (96%) rename pkg/{apis => api}/ams/amsclient/model_subscription_patch_request.go (94%) rename pkg/{apis => api}/ams/amsclient/model_summary.go (94%) rename pkg/{apis => api}/ams/amsclient/model_summary_all_of.go (94%) rename pkg/{apis => api}/ams/amsclient/model_summary_metrics.go (95%) rename pkg/{apis => api}/ams/amsclient/model_summary_metrics_all_of.go (95%) rename pkg/{apis => api}/ams/amsclient/model_summary_vector.go (94%) rename pkg/{apis => api}/ams/amsclient/model_summary_vector_all_of.go (94%) rename pkg/{apis => api}/ams/amsclient/model_support_cases_created_response.go (95%) rename pkg/{apis => api}/ams/amsclient/model_support_cases_request.go (94%) rename pkg/{apis => api}/ams/amsclient/model_template_parameter.go (94%) rename pkg/{apis => api}/ams/amsclient/model_terms_review.go (93%) rename pkg/{apis => api}/ams/amsclient/model_terms_review_response.go (93%) rename pkg/{apis => api}/ams/amsclient/model_token_authorization_request.go (96%) rename pkg/{apis => api}/ams/amsclient/model_token_authorization_response.go (96%) rename pkg/{apis => api}/ams/amsclient/response.go (88%) rename pkg/{apis => api}/ams/amsclient/utils.go (98%) rename pkg/{apis => api}/apis.go (100%) rename pkg/{apis => api}/rbac/api.go (100%) rename pkg/{apis => api}/rbac/rbacutil/api_util.go (100%) delete mode 100644 pkg/apis/ams/amsclient/.openapi-generator/VERSION diff --git a/Makefile b/Makefile index 20d777d99..465cea326 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ endif # The details of the application: binary:=rhoas -amsapi_dir=./pkg/apis/ams/amsclient +amsapi_dir=./pkg/api/ams/amsclient # Enable Go modules: export GO111MODULE=on diff --git a/pkg/apis/ams/amsclient/.gitignore b/pkg/api/ams/amsclient/.gitignore similarity index 100% rename from pkg/apis/ams/amsclient/.gitignore rename to pkg/api/ams/amsclient/.gitignore diff --git a/pkg/apis/ams/amsclient/.openapi-generator-ignore b/pkg/api/ams/amsclient/.openapi-generator-ignore similarity index 100% rename from pkg/apis/ams/amsclient/.openapi-generator-ignore rename to pkg/api/ams/amsclient/.openapi-generator-ignore diff --git a/pkg/apis/ams/amsclient/.openapi-generator/FILES b/pkg/api/ams/amsclient/.openapi-generator/FILES similarity index 100% rename from pkg/apis/ams/amsclient/.openapi-generator/FILES rename to pkg/api/ams/amsclient/.openapi-generator/FILES diff --git a/pkg/api/ams/amsclient/.openapi-generator/VERSION b/pkg/api/ams/amsclient/.openapi-generator/VERSION new file mode 100644 index 000000000..acf69b48b --- /dev/null +++ b/pkg/api/ams/amsclient/.openapi-generator/VERSION @@ -0,0 +1 @@ +5.1.0 \ No newline at end of file diff --git a/pkg/apis/ams/amsclient/.travis.yml b/pkg/api/ams/amsclient/.travis.yml similarity index 100% rename from pkg/apis/ams/amsclient/.travis.yml rename to pkg/api/ams/amsclient/.travis.yml diff --git a/pkg/apis/ams/amsclient/README.md b/pkg/api/ams/amsclient/README.md similarity index 99% rename from pkg/apis/ams/amsclient/README.md rename to pkg/api/ams/amsclient/README.md index 29fefc4be..dc62aa28e 100644 --- a/pkg/apis/ams/amsclient/README.md +++ b/pkg/api/ams/amsclient/README.md @@ -58,7 +58,7 @@ Note, enum values are always validated and all unused variables are silently ign ### URLs Configuration per Operation Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. -An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +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. ``` diff --git a/pkg/apis/ams/amsclient/api/openapi.yaml b/pkg/api/ams/amsclient/api/openapi.yaml similarity index 100% rename from pkg/apis/ams/amsclient/api/openapi.yaml rename to pkg/api/ams/amsclient/api/openapi.yaml diff --git a/pkg/apis/ams/amsclient/api_default.go b/pkg/api/ams/amsclient/api_default.go similarity index 81% rename from pkg/apis/ams/amsclient/api_default.go rename to pkg/api/ams/amsclient/api_default.go index c29082ed3..f07d4cc68 100644 --- a/pkg/apis/ams/amsclient/api_default.go +++ b/pkg/api/ams/amsclient/api_default.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -27,1117 +27,1201 @@ var ( type DefaultApi 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 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 executes the request + * @return AccessTokenCfg + */ ApiAccountsMgmtV1AccessTokenPostExecute(r ApiApiAccountsMgmtV1AccessTokenPostRequest) (AccessTokenCfg, *_nethttp.Response, error) /* - 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 executes the request + * @return Account + */ ApiAccountsMgmtV1AccountsPostExecute(r ApiApiAccountsMgmtV1AccountsPostRequest) (Account, *_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 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 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 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 executes the request + * @return ClusterRegistrationResponse + */ ApiAccountsMgmtV1ClusterRegistrationsPostExecute(r ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest) (ClusterRegistrationResponse, *_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 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 executes the request + * @return Account + */ ApiAccountsMgmtV1CurrentAccountGetExecute(r ApiApiAccountsMgmtV1CurrentAccountGetRequest) (Account, *_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 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 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 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 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 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 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 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 executes the request + * @return LabelList + */ ApiAccountsMgmtV1LabelsGetExecute(r ApiApiAccountsMgmtV1LabelsGetRequest) (LabelList, *_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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 executes the request + * @return Summary + */ ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest) (Summary, *_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 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 executes the request + * @return QuotaCostList + */ ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) (QuotaCostList, *_nethttp.Response, error) /* - ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet Returns a summary of 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 ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest - - Deprecated - */ + * ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet Returns a summary of 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 ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest + */ ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest - // ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecute executes the request - // @return QuotaSummaryList - // Deprecated + /* + * ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecute executes the request + * @return QuotaSummaryList + */ ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest) (QuotaSummaryList, *_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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 executes the request + * @return AccessTokenCfg + */ ApiAccountsMgmtV1PullSecretsPostExecute(r ApiApiAccountsMgmtV1PullSecretsPostRequest) (AccessTokenCfg, *_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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 executes the request + * @return Role + */ ApiAccountsMgmtV1RolesIdGetExecute(r ApiApiAccountsMgmtV1RolesIdGetRequest) (Role, *_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 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 executes the request + * @return SkuRulesList + */ ApiAccountsMgmtV1SkuRulesGetExecute(r ApiApiAccountsMgmtV1SkuRulesGetRequest) (SkuRulesList, *_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 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 executes the request + * @return SkuRules + */ ApiAccountsMgmtV1SkuRulesIdGetExecute(r ApiApiAccountsMgmtV1SkuRulesIdGetRequest) (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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 executes the request + * @return Label + */ ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest) (Label, *_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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 executes the request + * @return Account + */ ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest) (Account, *_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 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 executes the request + * @return ReservedResource + */ ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest) (ReservedResource, *_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 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 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 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 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 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 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 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 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 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 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 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 executes the request + * @return ExportControlReview + */ ApiAuthorizationsV1ExportControlReviewPostExecute(r ApiApiAuthorizationsV1ExportControlReviewPostRequest) (ExportControlReview, *_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 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 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 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 executes the request + * @return AccessReviewResponse + */ ApiAuthorizationsV1SelfAccessReviewPostExecute(r ApiApiAuthorizationsV1SelfAccessReviewPostRequest) (AccessReviewResponse, *_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 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 executes the request + * @return SelfResourceReview + */ ApiAuthorizationsV1SelfResourceReviewPostExecute(r ApiApiAuthorizationsV1SelfResourceReviewPostRequest) (SelfResourceReview, *_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 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 executes the request + * @return TermsReviewResponse + */ ApiAuthorizationsV1SelfTermsReviewPostExecute(r ApiApiAuthorizationsV1SelfTermsReviewPostRequest) (TermsReviewResponse, *_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 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 executes the request + * @return TermsReviewResponse + */ ApiAuthorizationsV1TermsReviewPostExecute(r ApiApiAuthorizationsV1TermsReviewPostRequest) (TermsReviewResponse, *_nethttp.Response, error) } @@ -1145,30 +1229,30 @@ type DefaultApi interface { type DefaultApiService service type ApiApiAccountsMgmtV1AccessTokenPostRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi } - 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 -*/ + * 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 *DefaultApiService) ApiAccountsMgmtV1AccessTokenPost(ctx _context.Context) ApiApiAccountsMgmtV1AccessTokenPostRequest { return ApiApiAccountsMgmtV1AccessTokenPostRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } -// Execute executes the request -// @return AccessTokenCfg +/* + * Execute executes the request + * @return AccessTokenCfg + */ func (a *DefaultApiService) ApiAccountsMgmtV1AccessTokenPostExecute(r ApiApiAccountsMgmtV1AccessTokenPostRequest) (AccessTokenCfg, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -1294,48 +1378,41 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccessTokenPostExecute(r ApiApiAcco } type ApiApiAccountsMgmtV1AccountsGetRequest struct { - ctx _context.Context - ApiService DefaultApi - page *int32 - size *int32 - search *string - orderBy *string - fields *string - fetchLabels *bool + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string + orderBy *string + fields *string + fetchLabels *bool fetchCapabilities *bool } -// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1AccountsGetRequest) Page(page int32) ApiApiAccountsMgmtV1AccountsGetRequest { r.page = &page return r } -// Maximum number of records to return func (r ApiApiAccountsMgmtV1AccountsGetRequest) Size(size int32) ApiApiAccountsMgmtV1AccountsGetRequest { r.size = &size return r } -// 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. func (r ApiApiAccountsMgmtV1AccountsGetRequest) Search(search string) ApiApiAccountsMgmtV1AccountsGetRequest { r.search = &search return r } -// 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. func (r ApiApiAccountsMgmtV1AccountsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1AccountsGetRequest { r.orderBy = &orderBy return r } -// 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 ``` func (r ApiApiAccountsMgmtV1AccountsGetRequest) Fields(fields string) ApiApiAccountsMgmtV1AccountsGetRequest { r.fields = &fields return r } -// If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1AccountsGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1AccountsGetRequest { r.fetchLabels = &fetchLabels return r } -// If true, includes the capabilities on a subscription in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1AccountsGetRequest) FetchCapabilities(fetchCapabilities bool) ApiApiAccountsMgmtV1AccountsGetRequest { r.fetchCapabilities = &fetchCapabilities return r @@ -1346,20 +1423,21 @@ func (r ApiApiAccountsMgmtV1AccountsGetRequest) Execute() (AccountList, *_nethtt } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return AccountList +/* + * Execute executes the request + * @return AccountList + */ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsGetExecute(r ApiApiAccountsMgmtV1AccountsGetRequest) (AccountList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -1486,19 +1564,17 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsGetExecute(r ApiApiAccounts } type ApiApiAccountsMgmtV1AccountsIdGetRequest struct { - ctx _context.Context - ApiService DefaultApi - id string - fetchLabels *bool + ctx _context.Context + ApiService DefaultApi + id string + fetchLabels *bool fetchCapabilities *bool } -// If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1AccountsIdGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1AccountsIdGetRequest { r.fetchLabels = &fetchLabels return r } -// If true, includes the capabilities on a subscription in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1AccountsIdGetRequest) FetchCapabilities(fetchCapabilities bool) ApiApiAccountsMgmtV1AccountsIdGetRequest { r.fetchCapabilities = &fetchCapabilities return r @@ -1509,22 +1585,23 @@ func (r ApiApiAccountsMgmtV1AccountsIdGetRequest) Execute() (Account, *_nethttp. } /* -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 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return Account +/* + * Execute executes the request + * @return Account + */ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdGetExecute(r ApiApiAccountsMgmtV1AccountsIdGetRequest) (Account, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -1647,31 +1724,27 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdGetExecute(r ApiApiAccoun } type ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - page *int32 - size *int32 - search *string - orderBy *string + id string + page *int32 + size *int32 + search *string + orderBy *string } -// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) Page(page int32) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest { r.page = &page return r } -// Maximum number of records to return func (r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) Size(size int32) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest { r.size = &size return r } -// 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. func (r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) Search(search string) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest { r.search = &search return r } -// 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. func (r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest { r.orderBy = &orderBy return r @@ -1682,22 +1755,23 @@ func (r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) Execute() (LabelList, *_ } /* -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 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return LabelList +/* + * Execute executes the request + * @return LabelList + */ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsGetExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -1816,35 +1890,35 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsGetExecute(r ApiApi } type ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - key string + 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 -*/ + * 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, + ctx: ctx, + id: id, + key: key, } } -// Execute executes the request +/* + * Execute executes the request + */ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -1952,36 +2026,36 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecute(r } type ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - key string + 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 -*/ + * 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, + ctx: ctx, + id: id, + key: key, } } -// Execute executes the request -// @return Label +/* + * Execute executes the request + * @return Label + */ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -2099,14 +2173,13 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecute(r Api } type ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - key string - label *Label + id string + key string + label *Label } -// Label data func (r ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest) Label(label Label) ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest { r.label = &label return r @@ -2117,24 +2190,25 @@ func (r ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest) Execute() (Label, * } /* -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 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, + ctx: ctx, + id: id, + key: key, } } -// Execute executes the request -// @return Label +/* + * Execute executes the request + * @return Label + */ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -2267,13 +2341,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecute(r A } type ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - label *Label + id string + label *Label } -// Label data func (r ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest) Label(label Label) ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest { r.label = &label return r @@ -2284,22 +2357,23 @@ func (r ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest) Execute() (Label, *_net } /* -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 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return Label +/* + * Execute executes the request + * @return Label + */ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsPostExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest) (Label, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -2421,13 +2495,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsPostExecute(r ApiAp } type ApiApiAccountsMgmtV1AccountsIdPatchRequest struct { - ctx _context.Context - ApiService DefaultApi - id string + ctx _context.Context + ApiService DefaultApi + id string accountPatchRequest *AccountPatchRequest } -// Updated account data func (r ApiApiAccountsMgmtV1AccountsIdPatchRequest) AccountPatchRequest(accountPatchRequest AccountPatchRequest) ApiApiAccountsMgmtV1AccountsIdPatchRequest { r.accountPatchRequest = &accountPatchRequest return r @@ -2438,22 +2511,23 @@ func (r ApiApiAccountsMgmtV1AccountsIdPatchRequest) Execute() (Account, *_nethtt } /* -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 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return Account +/* + * Execute executes the request + * @return Account + */ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdPatchExecute(r ApiApiAccountsMgmtV1AccountsIdPatchRequest) (Account, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -2595,18 +2669,16 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdPatchExecute(r ApiApiAcco } type ApiApiAccountsMgmtV1AccountsPostRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - account *Account - dryRun *bool + account *Account + dryRun *bool } -// Account data func (r ApiApiAccountsMgmtV1AccountsPostRequest) Account(account Account) ApiApiAccountsMgmtV1AccountsPostRequest { r.account = &account return r } -// If true, instructs API to avoid making any changes, but rather run through validations only. func (r ApiApiAccountsMgmtV1AccountsPostRequest) DryRun(dryRun bool) ApiApiAccountsMgmtV1AccountsPostRequest { r.dryRun = &dryRun return r @@ -2617,20 +2689,21 @@ func (r ApiApiAccountsMgmtV1AccountsPostRequest) Execute() (Account, *_nethttp.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 -*/ + * 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, + ctx: ctx, } } -// Execute executes the request -// @return Account +/* + * Execute executes the request + * @return Account + */ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsPostExecute(r ApiApiAccountsMgmtV1AccountsPostRequest) (Account, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -2764,12 +2837,11 @@ func (a *DefaultApiService) ApiAccountsMgmtV1AccountsPostExecute(r ApiApiAccount } type ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi clusterAuthorizationRequest *ClusterAuthorizationRequest } -// Cluster and authorization data func (r ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest) ClusterAuthorizationRequest(clusterAuthorizationRequest ClusterAuthorizationRequest) ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest { r.clusterAuthorizationRequest = &clusterAuthorizationRequest return r @@ -2780,20 +2852,21 @@ func (r ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest) Execute() (Cluster } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return ClusterAuthorizationResponse +/* + * Execute executes the request + * @return ClusterAuthorizationResponse + */ func (a *DefaultApiService) ApiAccountsMgmtV1ClusterAuthorizationsPostExecute(r ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest) (ClusterAuthorizationResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -2934,12 +3007,11 @@ func (a *DefaultApiService) ApiAccountsMgmtV1ClusterAuthorizationsPostExecute(r } type ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi clusterRegistrationRequest *ClusterRegistrationRequest } -// Cluster and authorization data func (r ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest) ClusterRegistrationRequest(clusterRegistrationRequest ClusterRegistrationRequest) ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest { r.clusterRegistrationRequest = &clusterRegistrationRequest return r @@ -2950,20 +3022,21 @@ func (r ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest) Execute() (ClusterR } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return ClusterRegistrationResponse +/* + * Execute executes the request + * @return ClusterRegistrationResponse + */ func (a *DefaultApiService) ApiAccountsMgmtV1ClusterRegistrationsPostExecute(r ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest) (ClusterRegistrationResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -3114,12 +3187,11 @@ func (a *DefaultApiService) ApiAccountsMgmtV1ClusterRegistrationsPostExecute(r A } type ApiApiAccountsMgmtV1CurrentAccountGetRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi fetchLabels *bool } -// If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1CurrentAccountGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1CurrentAccountGetRequest { r.fetchLabels = &fetchLabels return r @@ -3130,20 +3202,21 @@ func (r ApiApiAccountsMgmtV1CurrentAccountGetRequest) Execute() (Account, *_neth } /* -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 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 *DefaultApiService) ApiAccountsMgmtV1CurrentAccountGet(ctx _context.Context) ApiApiAccountsMgmtV1CurrentAccountGetRequest { return ApiApiAccountsMgmtV1CurrentAccountGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } -// Execute executes the request -// @return Account +/* + * Execute executes the request + * @return Account + */ func (a *DefaultApiService) ApiAccountsMgmtV1CurrentAccountGetExecute(r ApiApiAccountsMgmtV1CurrentAccountGetRequest) (Account, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -3252,24 +3325,21 @@ func (a *DefaultApiService) ApiAccountsMgmtV1CurrentAccountGetExecute(r ApiApiAc } type ApiApiAccountsMgmtV1ErrorsGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - page *int32 - size *int32 - search *string + page *int32 + size *int32 + search *string } -// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1ErrorsGetRequest) Page(page int32) ApiApiAccountsMgmtV1ErrorsGetRequest { r.page = &page return r } -// Maximum number of records to return func (r ApiApiAccountsMgmtV1ErrorsGetRequest) Size(size int32) ApiApiAccountsMgmtV1ErrorsGetRequest { r.size = &size return r } -// 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. func (r ApiApiAccountsMgmtV1ErrorsGetRequest) Search(search string) ApiApiAccountsMgmtV1ErrorsGetRequest { r.search = &search return r @@ -3280,20 +3350,21 @@ func (r ApiApiAccountsMgmtV1ErrorsGetRequest) Execute() (ErrorList, *_nethttp.Re } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return ErrorList +/* + * Execute executes the request + * @return ErrorList + */ func (a *DefaultApiService) ApiAccountsMgmtV1ErrorsGetExecute(r ApiApiAccountsMgmtV1ErrorsGetRequest) (ErrorList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -3408,33 +3479,33 @@ func (a *DefaultApiService) ApiAccountsMgmtV1ErrorsGetExecute(r ApiApiAccountsMg } type ApiApiAccountsMgmtV1ErrorsIdGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 -*/ + * 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return Error +/* + * Execute executes the request + * @return Error + */ func (a *DefaultApiService) ApiAccountsMgmtV1ErrorsIdGetExecute(r ApiApiAccountsMgmtV1ErrorsIdGetRequest) (Error, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -3551,13 +3622,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1ErrorsIdGetExecute(r ApiApiAccounts } type ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest struct { - ctx _context.Context - ApiService DefaultApi - id string + ctx _context.Context + ApiService DefaultApi + id string featureToggleQueryRequest *FeatureToggleQueryRequest } -// The context of the query func (r ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest) FeatureToggleQueryRequest(featureToggleQueryRequest FeatureToggleQueryRequest) ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest { r.featureToggleQueryRequest = &featureToggleQueryRequest return r @@ -3568,22 +3638,23 @@ func (r ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest) Execute() (Feature } /* -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 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return FeatureToggle +/* + * Execute executes the request + * @return FeatureToggle + */ func (a *DefaultApiService) ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecute(r ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest) (FeatureToggle, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -3705,30 +3776,26 @@ func (a *DefaultApiService) ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecute(r } type ApiApiAccountsMgmtV1LabelsGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - page *int32 - size *int32 - search *string - orderBy *string + page *int32 + size *int32 + search *string + orderBy *string } -// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1LabelsGetRequest) Page(page int32) ApiApiAccountsMgmtV1LabelsGetRequest { r.page = &page return r } -// Maximum number of records to return func (r ApiApiAccountsMgmtV1LabelsGetRequest) Size(size int32) ApiApiAccountsMgmtV1LabelsGetRequest { r.size = &size return r } -// 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. func (r ApiApiAccountsMgmtV1LabelsGetRequest) Search(search string) ApiApiAccountsMgmtV1LabelsGetRequest { r.search = &search return r } -// 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. func (r ApiApiAccountsMgmtV1LabelsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1LabelsGetRequest { r.orderBy = &orderBy return r @@ -3739,20 +3806,21 @@ func (r ApiApiAccountsMgmtV1LabelsGetRequest) Execute() (LabelList, *_nethttp.Re } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return LabelList +/* + * Execute executes the request + * @return LabelList + */ func (a *DefaultApiService) ApiAccountsMgmtV1LabelsGetExecute(r ApiApiAccountsMgmtV1LabelsGetRequest) (LabelList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -3870,12 +3938,11 @@ func (a *DefaultApiService) ApiAccountsMgmtV1LabelsGetExecute(r ApiApiAccountsMg } type ApiApiAccountsMgmtV1MetricsGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - search *string + 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. func (r ApiApiAccountsMgmtV1MetricsGetRequest) Search(search string) ApiApiAccountsMgmtV1MetricsGetRequest { r.search = &search return r @@ -3886,20 +3953,21 @@ func (r ApiApiAccountsMgmtV1MetricsGetRequest) Execute() (MetricsList, *_nethttp } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return MetricsList +/* + * Execute executes the request + * @return MetricsList + */ func (a *DefaultApiService) ApiAccountsMgmtV1MetricsGetExecute(r ApiApiAccountsMgmtV1MetricsGetRequest) (MetricsList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -4008,12 +4076,11 @@ func (a *DefaultApiService) ApiAccountsMgmtV1MetricsGetExecute(r ApiApiAccountsM } type ApiApiAccountsMgmtV1NotifyPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi 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 func (r ApiApiAccountsMgmtV1NotifyPostRequest) NotificationRequest(notificationRequest NotificationRequest) ApiApiAccountsMgmtV1NotifyPostRequest { r.notificationRequest = ¬ificationRequest return r @@ -4024,19 +4091,20 @@ func (r ApiApiAccountsMgmtV1NotifyPostRequest) Execute() (*_nethttp.Response, er } /* -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 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, + ctx: ctx, } } -// Execute executes the request +/* + * Execute executes the request + */ func (a *DefaultApiService) ApiAccountsMgmtV1NotifyPostExecute(r ApiApiAccountsMgmtV1NotifyPostRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -4147,48 +4215,41 @@ func (a *DefaultApiService) ApiAccountsMgmtV1NotifyPostExecute(r ApiApiAccountsM } type ApiApiAccountsMgmtV1OrganizationsGetRequest struct { - ctx _context.Context - ApiService DefaultApi - page *int32 - size *int32 - search *string - orderBy *string - fetchLabels *bool + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string + orderBy *string + fetchLabels *bool fetchCapabilities *bool - fields *string + fields *string } -// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) Page(page int32) ApiApiAccountsMgmtV1OrganizationsGetRequest { r.page = &page return r } -// Maximum number of records to return func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) Size(size int32) ApiApiAccountsMgmtV1OrganizationsGetRequest { r.size = &size return r } -// 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. func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) Search(search string) ApiApiAccountsMgmtV1OrganizationsGetRequest { r.search = &search return r } -// 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. func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1OrganizationsGetRequest { r.orderBy = &orderBy return r } -// If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1OrganizationsGetRequest { r.fetchLabels = &fetchLabels return r } -// If true, includes the capabilities on a subscription in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) FetchCapabilities(fetchCapabilities bool) ApiApiAccountsMgmtV1OrganizationsGetRequest { r.fetchCapabilities = &fetchCapabilities return r } -// 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 ``` func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) Fields(fields string) ApiApiAccountsMgmtV1OrganizationsGetRequest { r.fields = &fields return r @@ -4199,20 +4260,21 @@ func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) Execute() (OrganizationList } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return OrganizationList +/* + * Execute executes the request + * @return OrganizationList + */ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsGetExecute(r ApiApiAccountsMgmtV1OrganizationsGetRequest) (OrganizationList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -4339,19 +4401,17 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsGetExecute(r ApiApiAcc } type ApiApiAccountsMgmtV1OrganizationsIdGetRequest struct { - ctx _context.Context - ApiService DefaultApi - id string - fetchLabels *bool + ctx _context.Context + ApiService DefaultApi + id string + fetchLabels *bool fetchCapabilities *bool } -// If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1OrganizationsIdGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1OrganizationsIdGetRequest { r.fetchLabels = &fetchLabels return r } -// If true, includes the capabilities on a subscription in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1OrganizationsIdGetRequest) FetchCapabilities(fetchCapabilities bool) ApiApiAccountsMgmtV1OrganizationsIdGetRequest { r.fetchCapabilities = &fetchCapabilities return r @@ -4362,22 +4422,23 @@ func (r ApiApiAccountsMgmtV1OrganizationsIdGetRequest) Execute() (Organization, } /* -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 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return Organization +/* + * Execute executes the request + * @return Organization + */ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdGetRequest) (Organization, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -4500,31 +4561,27 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdGetExecute(r ApiApiA } type ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - page *int32 - size *int32 - search *string - orderBy *string + id string + page *int32 + size *int32 + search *string + orderBy *string } -// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) Page(page int32) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest { r.page = &page return r } -// Maximum number of records to return func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) Size(size int32) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest { r.size = &size return r } -// 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. func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) Search(search string) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest { r.search = &search return r } -// 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. func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest { r.orderBy = &orderBy return r @@ -4535,22 +4592,23 @@ func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) Execute() (LabelLis } /* -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 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return LabelList +/* + * Execute executes the request + * @return LabelList + */ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -4669,35 +4727,35 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsGetExecute(r A } type ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - key string + 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 -*/ + * 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, + ctx: ctx, + id: id, + key: key, } } -// Execute executes the request +/* + * Execute executes the request + */ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -4805,36 +4863,36 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecu } type ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - key string + 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 -*/ + * 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, + ctx: ctx, + id: id, + key: key, } } -// Execute executes the request -// @return Label +/* + * Execute executes the request + * @return Label + */ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -4952,14 +5010,13 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecute( } type ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - key string - label *Label + id string + key string + label *Label } -// Label data func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest) Label(label Label) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest { r.label = &label return r @@ -4970,24 +5027,25 @@ func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest) Execute() (Lab } /* -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 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, + ctx: ctx, + id: id, + key: key, } } -// Execute executes the request -// @return Label +/* + * Execute executes the request + * @return Label + */ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -5120,13 +5178,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecut } type ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - label *Label + id string + label *Label } -// Label data func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest) Label(label Label) ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest { r.label = &label return r @@ -5137,22 +5194,23 @@ func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest) Execute() (Label, } /* -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 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return Label +/* + * Execute executes the request + * @return Label + */ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsPostExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest) (Label, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -5274,13 +5332,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsPostExecute(r } type ApiApiAccountsMgmtV1OrganizationsIdPatchRequest struct { - ctx _context.Context - ApiService DefaultApi - id string + ctx _context.Context + ApiService DefaultApi + id string organizationPatchRequest *OrganizationPatchRequest } -// Updated organization data func (r ApiApiAccountsMgmtV1OrganizationsIdPatchRequest) OrganizationPatchRequest(organizationPatchRequest OrganizationPatchRequest) ApiApiAccountsMgmtV1OrganizationsIdPatchRequest { r.organizationPatchRequest = &organizationPatchRequest return r @@ -5291,22 +5348,23 @@ func (r ApiApiAccountsMgmtV1OrganizationsIdPatchRequest) Execute() (Organization } /* -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 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return Organization +/* + * Execute executes the request + * @return Organization + */ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdPatchExecute(r ApiApiAccountsMgmtV1OrganizationsIdPatchRequest) (Organization, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -5438,33 +5496,33 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdPatchExecute(r ApiAp } type ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 -*/ + * 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return Summary +/* + * Execute executes the request + * @return Summary + */ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest) (Summary, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -5571,19 +5629,17 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetE } type ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest struct { - ctx _context.Context - ApiService DefaultApi - orgId string - search *string + ctx _context.Context + ApiService DefaultApi + orgId string + search *string fetchRelatedResources *bool } -// 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. func (r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) Search(search string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest { r.search = &search return r } -// If true, includes the related resources in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) FetchRelatedResources(fetchRelatedResources bool) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest { r.fetchRelatedResources = &fetchRelatedResources return r @@ -5594,22 +5650,23 @@ func (r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) Execute() (Qu } /* -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 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 *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest { return ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest{ ApiService: a, - ctx: ctx, - orgId: orgId, + ctx: ctx, + orgId: orgId, } } -// Execute executes the request -// @return QuotaCostList +/* + * Execute executes the request + * @return QuotaCostList + */ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) (QuotaCostList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -5712,13 +5769,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecu } type ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - orgId string - search *string + orgId string + 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. func (r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest) Search(search string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest { r.search = &search return r @@ -5729,25 +5785,23 @@ func (r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest) Execute() } /* -ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet Returns a summary of 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 ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest - -Deprecated -*/ + * ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet Returns a summary of 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 ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest + */ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest { return ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest{ ApiService: a, - ctx: ctx, - orgId: orgId, + ctx: ctx, + orgId: orgId, } } -// Execute executes the request -// @return QuotaSummaryList -// Deprecated +/* + * Execute executes the request + * @return QuotaSummaryList + */ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest) (QuotaSummaryList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -5847,31 +5901,27 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetEx } type ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - orgId string - page *int32 - size *int32 - search *string - orderBy *string + orgId string + page *int32 + size *int32 + search *string + orderBy *string } -// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) Page(page int32) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest { r.page = &page return r } -// Maximum number of records to return func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) Size(size int32) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest { r.size = &size return r } -// 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. func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) Search(search string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest { r.search = &search return r } -// 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. func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest { r.orderBy = &orderBy return r @@ -5882,22 +5932,23 @@ func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) Execute() } /* -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 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, + ctx: ctx, + orgId: orgId, } } -// Execute executes the request -// @return ResourceQuotaList +/* + * Execute executes the request + * @return ResourceQuotaList + */ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) (ResourceQuotaList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -6026,13 +6077,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetE } type ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest struct { - ctx _context.Context - ApiService DefaultApi - orgId string + ctx _context.Context + ApiService DefaultApi + orgId string resourceQuotaRequest *ResourceQuotaRequest } -// Resource quota data func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest) ResourceQuotaRequest(resourceQuotaRequest ResourceQuotaRequest) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest { r.resourceQuotaRequest = &resourceQuotaRequest return r @@ -6043,22 +6093,23 @@ func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest) Execute( } /* -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 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, + ctx: ctx, + orgId: orgId, } } -// Execute executes the request -// @return ResourceQuota +/* + * Execute executes the request + * @return ResourceQuota + */ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest) (ResourceQuota, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -6190,35 +6241,35 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost } type ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - orgId string - quotaId string + 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 -*/ + * 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, + ctx: ctx, + orgId: orgId, + quotaId: quotaId, } } -// Execute executes the request +/* + * Execute executes the request + */ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -6326,36 +6377,36 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuot } type ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - orgId string - quotaId string + 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 -*/ + * 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, + ctx: ctx, + orgId: orgId, + quotaId: quotaId, } } -// Execute executes the request -// @return ResourceQuota +/* + * Execute executes the request + * @return ResourceQuota + */ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest) (ResourceQuota, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -6473,14 +6524,13 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuot } type ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest struct { - ctx _context.Context - ApiService DefaultApi - orgId string - quotaId string + ctx _context.Context + ApiService DefaultApi + orgId string + quotaId string resourceQuotaRequest *ResourceQuotaRequest } -// Updated resource quota data func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest) ResourceQuotaRequest(resourceQuotaRequest ResourceQuotaRequest) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest { r.resourceQuotaRequest = &resourceQuotaRequest return r @@ -6491,24 +6541,25 @@ func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest) } /* -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 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, + ctx: ctx, + orgId: orgId, + quotaId: quotaId, } } -// Execute executes the request -// @return ResourceQuota +/* + * Execute executes the request + * @return ResourceQuota + */ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest) (ResourceQuota, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -6641,12 +6692,11 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuot } type ApiApiAccountsMgmtV1OrganizationsPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi organization *Organization } -// Organization data func (r ApiApiAccountsMgmtV1OrganizationsPostRequest) Organization(organization Organization) ApiApiAccountsMgmtV1OrganizationsPostRequest { r.organization = &organization return r @@ -6657,20 +6707,21 @@ func (r ApiApiAccountsMgmtV1OrganizationsPostRequest) Execute() (Organization, * } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return Organization +/* + * Execute executes the request + * @return Organization + */ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsPostExecute(r ApiApiAccountsMgmtV1OrganizationsPostRequest) (Organization, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -6801,24 +6852,21 @@ func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsPostExecute(r ApiApiAc } type ApiApiAccountsMgmtV1PlansGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - page *int32 - size *int32 - search *string + page *int32 + size *int32 + search *string } -// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1PlansGetRequest) Page(page int32) ApiApiAccountsMgmtV1PlansGetRequest { r.page = &page return r } -// Maximum number of records to return func (r ApiApiAccountsMgmtV1PlansGetRequest) Size(size int32) ApiApiAccountsMgmtV1PlansGetRequest { r.size = &size return r } -// 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. func (r ApiApiAccountsMgmtV1PlansGetRequest) Search(search string) ApiApiAccountsMgmtV1PlansGetRequest { r.search = &search return r @@ -6829,20 +6877,21 @@ func (r ApiApiAccountsMgmtV1PlansGetRequest) Execute() (PlanList, *_nethttp.Resp } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return PlanList +/* + * Execute executes the request + * @return PlanList + */ func (a *DefaultApiService) ApiAccountsMgmtV1PlansGetExecute(r ApiApiAccountsMgmtV1PlansGetRequest) (PlanList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -6957,33 +7006,33 @@ func (a *DefaultApiService) ApiAccountsMgmtV1PlansGetExecute(r ApiApiAccountsMgm } type ApiApiAccountsMgmtV1PlansIdGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 -*/ + * 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return Plan +/* + * Execute executes the request + * @return Plan + */ func (a *DefaultApiService) ApiAccountsMgmtV1PlansIdGetExecute(r ApiApiAccountsMgmtV1PlansIdGetRequest) (Plan, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -7100,32 +7149,32 @@ func (a *DefaultApiService) ApiAccountsMgmtV1PlansIdGetExecute(r ApiApiAccountsM } type ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest struct { - ctx _context.Context - ApiService DefaultApi + 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 -*/ + * 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, + ApiService: a, + ctx: ctx, externalResourceId: externalResourceId, } } -// Execute executes the request +/* + * Execute executes the request + */ func (a *DefaultApiService) ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecute(r ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -7232,12 +7281,11 @@ func (a *DefaultApiService) ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete } type ApiApiAccountsMgmtV1PullSecretsPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi pullSecretRequest *PullSecretRequest } -// Identifier of the resource in the external service that this pull secret relates to func (r ApiApiAccountsMgmtV1PullSecretsPostRequest) PullSecretRequest(pullSecretRequest PullSecretRequest) ApiApiAccountsMgmtV1PullSecretsPostRequest { r.pullSecretRequest = &pullSecretRequest return r @@ -7248,20 +7296,21 @@ func (r ApiApiAccountsMgmtV1PullSecretsPostRequest) Execute() (AccessTokenCfg, * } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return AccessTokenCfg +/* + * Execute executes the request + * @return AccessTokenCfg + */ func (a *DefaultApiService) ApiAccountsMgmtV1PullSecretsPostExecute(r ApiApiAccountsMgmtV1PullSecretsPostRequest) (AccessTokenCfg, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -7392,30 +7441,26 @@ func (a *DefaultApiService) ApiAccountsMgmtV1PullSecretsPostExecute(r ApiApiAcco } type ApiApiAccountsMgmtV1RegistriesGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - page *int32 - size *int32 - search *string - orderBy *string + page *int32 + size *int32 + search *string + orderBy *string } -// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1RegistriesGetRequest) Page(page int32) ApiApiAccountsMgmtV1RegistriesGetRequest { r.page = &page return r } -// Maximum number of records to return func (r ApiApiAccountsMgmtV1RegistriesGetRequest) Size(size int32) ApiApiAccountsMgmtV1RegistriesGetRequest { r.size = &size return r } -// 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. func (r ApiApiAccountsMgmtV1RegistriesGetRequest) Search(search string) ApiApiAccountsMgmtV1RegistriesGetRequest { r.search = &search return r } -// 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. func (r ApiApiAccountsMgmtV1RegistriesGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1RegistriesGetRequest { r.orderBy = &orderBy return r @@ -7426,20 +7471,21 @@ func (r ApiApiAccountsMgmtV1RegistriesGetRequest) Execute() (RegistryList, *_net } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return RegistryList +/* + * Execute executes the request + * @return RegistryList + */ func (a *DefaultApiService) ApiAccountsMgmtV1RegistriesGetExecute(r ApiApiAccountsMgmtV1RegistriesGetRequest) (RegistryList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -7557,33 +7603,33 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RegistriesGetExecute(r ApiApiAccoun } type ApiApiAccountsMgmtV1RegistriesIdGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 -*/ + * 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return Registry +/* + * Execute executes the request + * @return Registry + */ func (a *DefaultApiService) ApiAccountsMgmtV1RegistriesIdGetExecute(r ApiApiAccountsMgmtV1RegistriesIdGetRequest) (Registry, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -7700,30 +7746,26 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RegistriesIdGetExecute(r ApiApiAcco } type ApiApiAccountsMgmtV1RegistryCredentialsGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - page *int32 - size *int32 - search *string - orderBy *string + page *int32 + size *int32 + search *string + orderBy *string } -// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) Page(page int32) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest { r.page = &page return r } -// Maximum number of records to return func (r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) Size(size int32) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest { r.size = &size return r } -// 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. func (r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) Search(search string) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest { r.search = &search return r } -// 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. func (r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest { r.orderBy = &orderBy return r @@ -7734,22 +7776,22 @@ func (r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) Execute() (RegistryCr } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return RegistryCredentialList +/* + * Execute executes the request + * @return RegistryCredentialList + */ func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsGetExecute(r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) (RegistryCredentialList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -7867,32 +7909,32 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsGetExecute(r Api } type ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 -*/ + * 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, + ctx: ctx, + id: id, } } -// Execute executes the request +/* + * Execute executes the request + */ func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecute(r ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -7999,33 +8041,33 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecute( } type ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 -*/ + * 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return RegistryCredential +/* + * Execute executes the request + * @return RegistryCredential + */ func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsIdGetExecute(r ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest) (RegistryCredential, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -8142,13 +8184,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsIdGetExecute(r A } type ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest struct { - ctx _context.Context - ApiService DefaultApi - id string + ctx _context.Context + ApiService DefaultApi + id string registryCredentialPatchRequest *RegistryCredentialPatchRequest } -// Updated registry credential data func (r ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest) RegistryCredentialPatchRequest(registryCredentialPatchRequest RegistryCredentialPatchRequest) ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest { r.registryCredentialPatchRequest = ®istryCredentialPatchRequest return r @@ -8159,22 +8200,23 @@ func (r ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest) Execute() (Regist } /* -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 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return RegistryCredential +/* + * Execute executes the request + * @return RegistryCredential + */ func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsIdPatchExecute(r ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest) (RegistryCredential, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -8306,12 +8348,11 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsIdPatchExecute(r } type ApiApiAccountsMgmtV1RegistryCredentialsPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi registryCredential *RegistryCredential } -// Registry credential data func (r ApiApiAccountsMgmtV1RegistryCredentialsPostRequest) RegistryCredential(registryCredential RegistryCredential) ApiApiAccountsMgmtV1RegistryCredentialsPostRequest { r.registryCredential = ®istryCredential return r @@ -8322,20 +8363,21 @@ func (r ApiApiAccountsMgmtV1RegistryCredentialsPostRequest) Execute() (RegistryC } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return RegistryCredential +/* + * Execute executes the request + * @return RegistryCredential + */ func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsPostExecute(r ApiApiAccountsMgmtV1RegistryCredentialsPostRequest) (RegistryCredential, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -8466,30 +8508,26 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsPostExecute(r Ap } type ApiApiAccountsMgmtV1ReservedResourcesGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - page *int32 - size *int32 - search *string - orderBy *string + page *int32 + size *int32 + search *string + orderBy *string } -// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) Page(page int32) ApiApiAccountsMgmtV1ReservedResourcesGetRequest { r.page = &page return r } -// Maximum number of records to return func (r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) Size(size int32) ApiApiAccountsMgmtV1ReservedResourcesGetRequest { r.size = &size return r } -// 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. func (r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) Search(search string) ApiApiAccountsMgmtV1ReservedResourcesGetRequest { r.search = &search return r } -// 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. func (r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1ReservedResourcesGetRequest { r.orderBy = &orderBy return r @@ -8500,20 +8538,21 @@ func (r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) Execute() (ReservedReso } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return ReservedResourceList +/* + * Execute executes the request + * @return ReservedResourceList + */ func (a *DefaultApiService) ApiAccountsMgmtV1ReservedResourcesGetExecute(r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) (ReservedResourceList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -8631,30 +8670,26 @@ func (a *DefaultApiService) ApiAccountsMgmtV1ReservedResourcesGetExecute(r ApiAp } type ApiApiAccountsMgmtV1ResourceQuotaGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - page *int32 - size *int32 - search *string - orderBy *string + page *int32 + size *int32 + search *string + orderBy *string } -// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) Page(page int32) ApiApiAccountsMgmtV1ResourceQuotaGetRequest { r.page = &page return r } -// Maximum number of records to return func (r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) Size(size int32) ApiApiAccountsMgmtV1ResourceQuotaGetRequest { r.size = &size return r } -// 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. func (r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) Search(search string) ApiApiAccountsMgmtV1ResourceQuotaGetRequest { r.search = &search return r } -// 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. func (r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1ResourceQuotaGetRequest { r.orderBy = &orderBy return r @@ -8665,20 +8700,21 @@ func (r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) Execute() (ResourceQuotaLis } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return ResourceQuotaList +/* + * Execute executes the request + * @return ResourceQuotaList + */ func (a *DefaultApiService) ApiAccountsMgmtV1ResourceQuotaGetExecute(r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) (ResourceQuotaList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -8796,30 +8832,26 @@ func (a *DefaultApiService) ApiAccountsMgmtV1ResourceQuotaGetExecute(r ApiApiAcc } type ApiApiAccountsMgmtV1RoleBindingsGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - page *int32 - size *int32 - search *string - orderBy *string + page *int32 + size *int32 + search *string + orderBy *string } -// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1RoleBindingsGetRequest) Page(page int32) ApiApiAccountsMgmtV1RoleBindingsGetRequest { r.page = &page return r } -// Maximum number of records to return func (r ApiApiAccountsMgmtV1RoleBindingsGetRequest) Size(size int32) ApiApiAccountsMgmtV1RoleBindingsGetRequest { r.size = &size return r } -// 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. func (r ApiApiAccountsMgmtV1RoleBindingsGetRequest) Search(search string) ApiApiAccountsMgmtV1RoleBindingsGetRequest { r.search = &search return r } -// 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. func (r ApiApiAccountsMgmtV1RoleBindingsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1RoleBindingsGetRequest { r.orderBy = &orderBy return r @@ -8830,20 +8862,21 @@ func (r ApiApiAccountsMgmtV1RoleBindingsGetRequest) Execute() (RoleBindingList, } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return RoleBindingList +/* + * Execute executes the request + * @return RoleBindingList + */ func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsGetExecute(r ApiApiAccountsMgmtV1RoleBindingsGetRequest) (RoleBindingList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -8961,32 +8994,32 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsGetExecute(r ApiApiAcco } type ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 -*/ + * 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, + ctx: ctx, + id: id, } } -// Execute executes the request +/* + * Execute executes the request + */ func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsIdDeleteExecute(r ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -9093,33 +9126,33 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsIdDeleteExecute(r ApiAp } type ApiApiAccountsMgmtV1RoleBindingsIdGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 -*/ + * 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return RoleBinding +/* + * Execute executes the request + * @return RoleBinding + */ func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsIdGetExecute(r ApiApiAccountsMgmtV1RoleBindingsIdGetRequest) (RoleBinding, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -9236,13 +9269,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsIdGetExecute(r ApiApiAc } type ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest struct { - ctx _context.Context - ApiService DefaultApi - id string + ctx _context.Context + ApiService DefaultApi + id string roleBindingRequest *RoleBindingRequest } -// Updated role binding data func (r ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest) RoleBindingRequest(roleBindingRequest RoleBindingRequest) ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest { r.roleBindingRequest = &roleBindingRequest return r @@ -9253,22 +9285,23 @@ func (r ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest) Execute() (RoleBinding, } /* -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 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return RoleBinding +/* + * Execute executes the request + * @return RoleBinding + */ func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsIdPatchExecute(r ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest) (RoleBinding, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -9400,12 +9433,11 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsIdPatchExecute(r ApiApi } type ApiApiAccountsMgmtV1RoleBindingsPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi roleBindingCreateRequest *RoleBindingCreateRequest } -// Role binding data func (r ApiApiAccountsMgmtV1RoleBindingsPostRequest) RoleBindingCreateRequest(roleBindingCreateRequest RoleBindingCreateRequest) ApiApiAccountsMgmtV1RoleBindingsPostRequest { r.roleBindingCreateRequest = &roleBindingCreateRequest return r @@ -9416,20 +9448,21 @@ func (r ApiApiAccountsMgmtV1RoleBindingsPostRequest) Execute() (RoleBinding, *_n } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return RoleBinding +/* + * Execute executes the request + * @return RoleBinding + */ func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsPostExecute(r ApiApiAccountsMgmtV1RoleBindingsPostRequest) (RoleBinding, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -9560,24 +9593,21 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsPostExecute(r ApiApiAcc } type ApiApiAccountsMgmtV1RolesGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - page *int32 - size *int32 - search *string + page *int32 + size *int32 + search *string } -// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1RolesGetRequest) Page(page int32) ApiApiAccountsMgmtV1RolesGetRequest { r.page = &page return r } -// Maximum number of records to return func (r ApiApiAccountsMgmtV1RolesGetRequest) Size(size int32) ApiApiAccountsMgmtV1RolesGetRequest { r.size = &size return r } -// 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. func (r ApiApiAccountsMgmtV1RolesGetRequest) Search(search string) ApiApiAccountsMgmtV1RolesGetRequest { r.search = &search return r @@ -9588,20 +9618,21 @@ func (r ApiApiAccountsMgmtV1RolesGetRequest) Execute() (RoleList, *_nethttp.Resp } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return RoleList +/* + * Execute executes the request + * @return RoleList + */ func (a *DefaultApiService) ApiAccountsMgmtV1RolesGetExecute(r ApiApiAccountsMgmtV1RolesGetRequest) (RoleList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -9716,33 +9747,33 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RolesGetExecute(r ApiApiAccountsMgm } type ApiApiAccountsMgmtV1RolesIdGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 -*/ + * 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return Role +/* + * Execute executes the request + * @return Role + */ func (a *DefaultApiService) ApiAccountsMgmtV1RolesIdGetExecute(r ApiApiAccountsMgmtV1RolesIdGetRequest) (Role, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -9859,12 +9890,11 @@ func (a *DefaultApiService) ApiAccountsMgmtV1RolesIdGetExecute(r ApiApiAccountsM } type ApiApiAccountsMgmtV1SkuRulesGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - search *string + 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. func (r ApiApiAccountsMgmtV1SkuRulesGetRequest) Search(search string) ApiApiAccountsMgmtV1SkuRulesGetRequest { r.search = &search return r @@ -9875,20 +9905,21 @@ func (r ApiApiAccountsMgmtV1SkuRulesGetRequest) Execute() (SkuRulesList, *_netht } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return SkuRulesList +/* + * Execute executes the request + * @return SkuRulesList + */ func (a *DefaultApiService) ApiAccountsMgmtV1SkuRulesGetExecute(r ApiApiAccountsMgmtV1SkuRulesGetRequest) (SkuRulesList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -9997,33 +10028,33 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SkuRulesGetExecute(r ApiApiAccounts } type ApiApiAccountsMgmtV1SkuRulesIdGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 -*/ + * 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return SkuRules +/* + * Execute executes the request + * @return SkuRules + */ func (a *DefaultApiService) ApiAccountsMgmtV1SkuRulesIdGetExecute(r ApiApiAccountsMgmtV1SkuRulesIdGetRequest) (SkuRules, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -10140,12 +10171,11 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SkuRulesIdGetExecute(r ApiApiAccoun } type ApiApiAccountsMgmtV1SkusGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - search *string + 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. func (r ApiApiAccountsMgmtV1SkusGetRequest) Search(search string) ApiApiAccountsMgmtV1SkusGetRequest { r.search = &search return r @@ -10156,20 +10186,21 @@ func (r ApiApiAccountsMgmtV1SkusGetRequest) Execute() (SkuList, *_nethttp.Respon } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return SkuList +/* + * Execute executes the request + * @return SkuList + */ func (a *DefaultApiService) ApiAccountsMgmtV1SkusGetExecute(r ApiApiAccountsMgmtV1SkusGetRequest) (SkuList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -10278,33 +10309,33 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SkusGetExecute(r ApiApiAccountsMgmt } type ApiApiAccountsMgmtV1SkusIdGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 -*/ + * 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return SKU +/* + * Execute executes the request + * @return SKU + */ func (a *DefaultApiService) ApiAccountsMgmtV1SkusIdGetExecute(r ApiApiAccountsMgmtV1SkusIdGetRequest) (SKU, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -10421,60 +10452,51 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SkusIdGetExecute(r ApiApiAccountsMg } type ApiApiAccountsMgmtV1SubscriptionsGetRequest struct { - ctx _context.Context - ApiService DefaultApi - page *int32 - size *int32 - search *string - fetchAccounts *bool - fetchLabels *bool + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string + fetchAccounts *bool + fetchLabels *bool fetchCapabilities *bool - fields *string - orderBy *string - labels *string + fields *string + orderBy *string + labels *string } -// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) Page(page int32) ApiApiAccountsMgmtV1SubscriptionsGetRequest { r.page = &page return r } -// Maximum number of records to return func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) Size(size int32) ApiApiAccountsMgmtV1SubscriptionsGetRequest { r.size = &size return r } -// 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. func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) Search(search string) ApiApiAccountsMgmtV1SubscriptionsGetRequest { r.search = &search return r } -// If true, includes the account reference information in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) FetchAccounts(fetchAccounts bool) ApiApiAccountsMgmtV1SubscriptionsGetRequest { r.fetchAccounts = &fetchAccounts return r } -// If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1SubscriptionsGetRequest { r.fetchLabels = &fetchLabels return r } -// If true, includes the capabilities on a subscription in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) FetchCapabilities(fetchCapabilities bool) ApiApiAccountsMgmtV1SubscriptionsGetRequest { r.fetchCapabilities = &fetchCapabilities return r } -// 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 ``` func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) Fields(fields string) ApiApiAccountsMgmtV1SubscriptionsGetRequest { r.fields = &fields return r } -// 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. func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1SubscriptionsGetRequest { r.orderBy = &orderBy return r } -// 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\" ``` func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) Labels(labels string) ApiApiAccountsMgmtV1SubscriptionsGetRequest { r.labels = &labels return r @@ -10485,20 +10507,21 @@ func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) Execute() (SubscriptionList } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return SubscriptionList +/* + * Execute executes the request + * @return SubscriptionList + */ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsGetRequest) (SubscriptionList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -10631,32 +10654,32 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsGetExecute(r ApiApiAcc } type ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string + 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 -*/ + * 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, + ctx: ctx, + id: id, } } -// Execute executes the request +/* + * Execute executes the request + */ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -10763,31 +10786,27 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdDeleteExecute(r ApiA } type ApiApiAccountsMgmtV1SubscriptionsIdGetRequest struct { - ctx _context.Context - ApiService DefaultApi - id string - fetchAccounts *bool - fetchLabels *bool + ctx _context.Context + ApiService DefaultApi + id string + fetchAccounts *bool + fetchLabels *bool fetchCapabilities *bool fetchCpuAndSocket *bool } -// If true, includes the account reference information in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) FetchAccounts(fetchAccounts bool) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest { r.fetchAccounts = &fetchAccounts return r } -// If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest { r.fetchLabels = &fetchLabels return r } -// If true, includes the capabilities on a subscription in the output. Could slow request response time. func (r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) FetchCapabilities(fetchCapabilities bool) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest { r.fetchCapabilities = &fetchCapabilities return r } -// 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. func (r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) FetchCpuAndSocket(fetchCpuAndSocket bool) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest { r.fetchCpuAndSocket = &fetchCpuAndSocket return r @@ -10798,22 +10817,23 @@ func (r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) Execute() (Subscription, } /* -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 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return Subscription +/* + * Execute executes the request + * @return Subscription + */ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) (Subscription, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -10942,31 +10962,27 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdGetExecute(r ApiApiA } type ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - page *int32 - size *int32 - search *string - orderBy *string + id string + page *int32 + size *int32 + search *string + orderBy *string } -// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) Page(page int32) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest { r.page = &page return r } -// Maximum number of records to return func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) Size(size int32) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest { r.size = &size return r } -// 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. func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) Search(search string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest { r.search = &search return r } -// 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. func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest { r.orderBy = &orderBy return r @@ -10977,22 +10993,23 @@ func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) Execute() (LabelLis } /* -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 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return LabelList +/* + * Execute executes the request + * @return LabelList + */ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -11111,35 +11128,35 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecute(r A } type ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - key string + 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 -*/ + * 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, + ctx: ctx, + id: id, + key: key, } } -// Execute executes the request +/* + * Execute executes the request + */ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -11247,36 +11264,36 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecu } type ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - key string + 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 -*/ + * 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, + ctx: ctx, + id: id, + key: key, } } -// Execute executes the request -// @return Label +/* + * Execute executes the request + * @return Label + */ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -11394,14 +11411,13 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecute( } type ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - key string - label *Label + id string + key string + label *Label } -// Label data func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest) Label(label Label) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest { r.label = &label return r @@ -11412,24 +11428,25 @@ func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest) Execute() (Lab } /* -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 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, + ctx: ctx, + id: id, + key: key, } } -// Execute executes the request -// @return Label +/* + * Execute executes the request + * @return Label + */ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -11562,13 +11579,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecut } type ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - label *Label + id string + label *Label } -// Label data func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest) Label(label Label) ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest { r.label = &label return r @@ -11579,22 +11595,23 @@ func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest) Execute() (Label, } /* -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 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return Label +/* + * Execute executes the request + * @return Label + */ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest) (Label, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -11716,13 +11733,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecute(r } type ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest struct { - ctx _context.Context - ApiService DefaultApi - id string + ctx _context.Context + ApiService DefaultApi + id string 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 func (r ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest) NotificationRequest(notificationRequest NotificationRequest) ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest { r.notificationRequest = ¬ificationRequest return r @@ -11733,21 +11749,22 @@ func (r ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest) Execute() (*_netht } /* -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 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, + ctx: ctx, + id: id, } } -// Execute executes the request +/* + * Execute executes the request + */ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecute(r ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -11859,13 +11876,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecute(r } type ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest struct { - ctx _context.Context - ApiService DefaultApi - id string + ctx _context.Context + ApiService DefaultApi + id string subscriptionPatchRequest *SubscriptionPatchRequest } -// Updated subscription data func (r ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest) SubscriptionPatchRequest(subscriptionPatchRequest SubscriptionPatchRequest) ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest { r.subscriptionPatchRequest = &subscriptionPatchRequest return r @@ -11876,22 +11892,23 @@ func (r ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest) Execute() (Subscription } /* -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 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return Subscription +/* + * Execute executes the request + * @return Subscription + */ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdPatchExecute(r ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest) (Subscription, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -12023,31 +12040,27 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdPatchExecute(r ApiAp } type ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - page *int32 - size *int32 - search *string - orderBy *string + id string + page *int32 + size *int32 + search *string + orderBy *string } -// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) Page(page int32) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest { r.page = &page return r } -// Maximum number of records to return func (r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) Size(size int32) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest { r.size = &size return r } -// 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. func (r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) Search(search string) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest { r.search = &search return r } -// 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. func (r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest { r.orderBy = &orderBy return r @@ -12058,22 +12071,23 @@ func (r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) Execute( } /* -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 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, + ctx: ctx, + id: id, } } -// Execute executes the request -// @return ReservedResourceList +/* + * Execute executes the request + * @return ReservedResourceList + */ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) (ReservedResourceList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -12192,19 +12206,17 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet } type ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - id string - page *int32 - size *int32 + id string + page *int32 + size *int32 } -// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest) Page(page int32) ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest { r.page = &page return r } -// Maximum number of records to return func (r ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest) Size(size int32) ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest { r.size = &size return r @@ -12215,21 +12227,22 @@ func (r ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest) Execute() (*_ } /* -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 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, + ctx: ctx, + id: id, } } -// Execute executes the request +/* + * Execute executes the request + */ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -12332,12 +12345,11 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecu } type ApiApiAccountsMgmtV1SubscriptionsPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi subscriptionCreateRequest *SubscriptionCreateRequest } -// Subscription Creation data func (r ApiApiAccountsMgmtV1SubscriptionsPostRequest) SubscriptionCreateRequest(subscriptionCreateRequest SubscriptionCreateRequest) ApiApiAccountsMgmtV1SubscriptionsPostRequest { r.subscriptionCreateRequest = &subscriptionCreateRequest return r @@ -12348,20 +12360,21 @@ func (r ApiApiAccountsMgmtV1SubscriptionsPostRequest) Execute() (Subscription, * } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return Subscription +/* + * Execute executes the request + * @return Subscription + */ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsPostRequest) (Subscription, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -12492,35 +12505,35 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsPostExecute(r ApiApiAc } type ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - subId string - accountId string + 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 -*/ + * 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, + ctx: ctx, + subId: subId, + accountId: accountId, } } -// Execute executes the request +/* + * Execute executes the request + */ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -12628,37 +12641,32 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdNotificationConta } type ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - subId string - page *int32 - size *int32 - search *string - fields *string - orderBy *string + subId string + page *int32 + size *int32 + search *string + fields *string + orderBy *string } -// Page number of record list when record list exceeds specified page size func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) Page(page int32) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { r.page = &page return r } -// Maximum number of records to return func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) Size(size int32) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { r.size = &size return r } -// 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. func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) Search(search string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { r.search = &search return r } -// 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 ``` func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) Fields(fields string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { r.fields = &fields return r } -// 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. func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { r.orderBy = &orderBy return r @@ -12669,22 +12677,23 @@ func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) Ex } /* -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 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, + ctx: ctx, + subId: subId, } } -// Execute executes the request -// @return AccountList +/* + * Execute executes the request + * @return AccountList + */ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) (AccountList, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -12806,13 +12815,12 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdNotificationConta } type ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest struct { - ctx _context.Context - ApiService DefaultApi - subId string + ctx _context.Context + ApiService DefaultApi + subId string notificationContactCreateRequest *NotificationContactCreateRequest } -// Add a notification contact by an account's username func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest) NotificationContactCreateRequest(notificationContactCreateRequest NotificationContactCreateRequest) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest { r.notificationContactCreateRequest = ¬ificationContactCreateRequest return r @@ -12823,22 +12831,23 @@ func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest) E } /* -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 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, + ctx: ctx, + subId: subId, } } -// Execute executes the request -// @return Account +/* + * Execute executes the request + * @return Account + */ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest) (Account, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -12970,36 +12979,36 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdNotificationConta } type ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest struct { - ctx _context.Context - ApiService DefaultApi - subId string + 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 -*/ + * 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, + ApiService: a, + ctx: ctx, + subId: subId, reservedResourceId: reservedResourceId, } } -// Execute executes the request -// @return ReservedResource +/* + * Execute executes the request + * @return ReservedResource + */ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest) (ReservedResource, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -13117,32 +13126,32 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdReservedResources } type ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest struct { - ctx _context.Context + ctx _context.Context ApiService DefaultApi - caseId string + 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 -*/ + * 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, + ctx: ctx, + caseId: caseId, } } -// Execute executes the request +/* + * Execute executes the request + */ func (a *DefaultApiService) ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecute(r ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -13259,12 +13268,11 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecute(r A } type ApiApiAccountsMgmtV1SupportCasesPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi supportCasesRequest *SupportCasesRequest } -// The contents of the support case to be created func (r ApiApiAccountsMgmtV1SupportCasesPostRequest) SupportCasesRequest(supportCasesRequest SupportCasesRequest) ApiApiAccountsMgmtV1SupportCasesPostRequest { r.supportCasesRequest = &supportCasesRequest return r @@ -13275,20 +13283,21 @@ func (r ApiApiAccountsMgmtV1SupportCasesPostRequest) Execute() (SupportCasesCrea } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return SupportCasesCreatedResponse +/* + * Execute executes the request + * @return SupportCasesCreatedResponse + */ func (a *DefaultApiService) ApiAccountsMgmtV1SupportCasesPostExecute(r ApiApiAccountsMgmtV1SupportCasesPostRequest) (SupportCasesCreatedResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -13409,12 +13418,11 @@ func (a *DefaultApiService) ApiAccountsMgmtV1SupportCasesPostExecute(r ApiApiAcc } type ApiApiAccountsMgmtV1TokenAuthorizationPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi tokenAuthorizationRequest *TokenAuthorizationRequest } -// Token authorization data func (r ApiApiAccountsMgmtV1TokenAuthorizationPostRequest) TokenAuthorizationRequest(tokenAuthorizationRequest TokenAuthorizationRequest) ApiApiAccountsMgmtV1TokenAuthorizationPostRequest { r.tokenAuthorizationRequest = &tokenAuthorizationRequest return r @@ -13425,20 +13433,21 @@ func (r ApiApiAccountsMgmtV1TokenAuthorizationPostRequest) Execute() (TokenAutho } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return TokenAuthorizationResponse +/* + * Execute executes the request + * @return TokenAuthorizationResponse + */ func (a *DefaultApiService) ApiAccountsMgmtV1TokenAuthorizationPostExecute(r ApiApiAccountsMgmtV1TokenAuthorizationPostRequest) (TokenAuthorizationResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -13559,12 +13568,11 @@ func (a *DefaultApiService) ApiAccountsMgmtV1TokenAuthorizationPostExecute(r Api } type ApiApiAuthorizationsV1AccessReviewPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi accessReview *AccessReview } -// Access review data func (r ApiApiAuthorizationsV1AccessReviewPostRequest) AccessReview(accessReview AccessReview) ApiApiAuthorizationsV1AccessReviewPostRequest { r.accessReview = &accessReview return r @@ -13575,20 +13583,21 @@ func (r ApiApiAuthorizationsV1AccessReviewPostRequest) Execute() (AccessReviewRe } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return AccessReviewResponse +/* + * Execute executes the request + * @return AccessReviewResponse + */ func (a *DefaultApiService) ApiAuthorizationsV1AccessReviewPostExecute(r ApiApiAuthorizationsV1AccessReviewPostRequest) (AccessReviewResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -13719,12 +13728,11 @@ func (a *DefaultApiService) ApiAuthorizationsV1AccessReviewPostExecute(r ApiApiA } type ApiApiAuthorizationsV1CapabilityReviewPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi capabilityReviewRequest *CapabilityReviewRequest } -// Capability review data func (r ApiApiAuthorizationsV1CapabilityReviewPostRequest) CapabilityReviewRequest(capabilityReviewRequest CapabilityReviewRequest) ApiApiAuthorizationsV1CapabilityReviewPostRequest { r.capabilityReviewRequest = &capabilityReviewRequest return r @@ -13735,20 +13743,21 @@ func (r ApiApiAuthorizationsV1CapabilityReviewPostRequest) Execute() (Capability } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return CapabilityReview +/* + * Execute executes the request + * @return CapabilityReview + */ func (a *DefaultApiService) ApiAuthorizationsV1CapabilityReviewPostExecute(r ApiApiAuthorizationsV1CapabilityReviewPostRequest) (CapabilityReview, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -13869,12 +13878,11 @@ func (a *DefaultApiService) ApiAuthorizationsV1CapabilityReviewPostExecute(r Api } type ApiApiAuthorizationsV1ExportControlReviewPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi exportControlReviewRequest *ExportControlReviewRequest } -// Export control review data func (r ApiApiAuthorizationsV1ExportControlReviewPostRequest) ExportControlReviewRequest(exportControlReviewRequest ExportControlReviewRequest) ApiApiAuthorizationsV1ExportControlReviewPostRequest { r.exportControlReviewRequest = &exportControlReviewRequest return r @@ -13885,20 +13893,21 @@ func (r ApiApiAuthorizationsV1ExportControlReviewPostRequest) Execute() (ExportC } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return ExportControlReview +/* + * Execute executes the request + * @return ExportControlReview + */ func (a *DefaultApiService) ApiAuthorizationsV1ExportControlReviewPostExecute(r ApiApiAuthorizationsV1ExportControlReviewPostRequest) (ExportControlReview, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -14019,12 +14028,11 @@ func (a *DefaultApiService) ApiAuthorizationsV1ExportControlReviewPostExecute(r } type ApiApiAuthorizationsV1ResourceReviewPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi resourceReviewRequest *ResourceReviewRequest } -// Resource review data func (r ApiApiAuthorizationsV1ResourceReviewPostRequest) ResourceReviewRequest(resourceReviewRequest ResourceReviewRequest) ApiApiAuthorizationsV1ResourceReviewPostRequest { r.resourceReviewRequest = &resourceReviewRequest return r @@ -14035,20 +14043,21 @@ func (r ApiApiAuthorizationsV1ResourceReviewPostRequest) Execute() (ResourceRevi } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return ResourceReview +/* + * Execute executes the request + * @return ResourceReview + */ func (a *DefaultApiService) ApiAuthorizationsV1ResourceReviewPostExecute(r ApiApiAuthorizationsV1ResourceReviewPostRequest) (ResourceReview, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -14179,12 +14188,11 @@ func (a *DefaultApiService) ApiAuthorizationsV1ResourceReviewPostExecute(r ApiAp } type ApiApiAuthorizationsV1SelfAccessReviewPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi selfAccessReview *SelfAccessReview } -// Self access review data func (r ApiApiAuthorizationsV1SelfAccessReviewPostRequest) SelfAccessReview(selfAccessReview SelfAccessReview) ApiApiAuthorizationsV1SelfAccessReviewPostRequest { r.selfAccessReview = &selfAccessReview return r @@ -14195,20 +14203,21 @@ func (r ApiApiAuthorizationsV1SelfAccessReviewPostRequest) Execute() (AccessRevi } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return AccessReviewResponse +/* + * Execute executes the request + * @return AccessReviewResponse + */ func (a *DefaultApiService) ApiAuthorizationsV1SelfAccessReviewPostExecute(r ApiApiAuthorizationsV1SelfAccessReviewPostRequest) (AccessReviewResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -14339,12 +14348,11 @@ func (a *DefaultApiService) ApiAuthorizationsV1SelfAccessReviewPostExecute(r Api } type ApiApiAuthorizationsV1SelfResourceReviewPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi selfResourceReviewRequest *SelfResourceReviewRequest } -// Self resource review data func (r ApiApiAuthorizationsV1SelfResourceReviewPostRequest) SelfResourceReviewRequest(selfResourceReviewRequest SelfResourceReviewRequest) ApiApiAuthorizationsV1SelfResourceReviewPostRequest { r.selfResourceReviewRequest = &selfResourceReviewRequest return r @@ -14355,20 +14363,21 @@ func (r ApiApiAuthorizationsV1SelfResourceReviewPostRequest) Execute() (SelfReso } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return SelfResourceReview +/* + * Execute executes the request + * @return SelfResourceReview + */ func (a *DefaultApiService) ApiAuthorizationsV1SelfResourceReviewPostExecute(r ApiApiAuthorizationsV1SelfResourceReviewPostRequest) (SelfResourceReview, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -14499,12 +14508,11 @@ func (a *DefaultApiService) ApiAuthorizationsV1SelfResourceReviewPostExecute(r A } type ApiApiAuthorizationsV1SelfTermsReviewPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi selfTermsReview *SelfTermsReview } -// Data to check self terms for func (r ApiApiAuthorizationsV1SelfTermsReviewPostRequest) SelfTermsReview(selfTermsReview SelfTermsReview) ApiApiAuthorizationsV1SelfTermsReviewPostRequest { r.selfTermsReview = &selfTermsReview return r @@ -14515,20 +14523,21 @@ func (r ApiApiAuthorizationsV1SelfTermsReviewPostRequest) Execute() (TermsReview } /* -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 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 *DefaultApiService) ApiAuthorizationsV1SelfTermsReviewPost(ctx _context.Context) ApiApiAuthorizationsV1SelfTermsReviewPostRequest { return ApiApiAuthorizationsV1SelfTermsReviewPostRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } -// Execute executes the request -// @return TermsReviewResponse +/* + * Execute executes the request + * @return TermsReviewResponse + */ func (a *DefaultApiService) ApiAuthorizationsV1SelfTermsReviewPostExecute(r ApiApiAuthorizationsV1SelfTermsReviewPostRequest) (TermsReviewResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -14659,12 +14668,11 @@ func (a *DefaultApiService) ApiAuthorizationsV1SelfTermsReviewPostExecute(r ApiA } type ApiApiAuthorizationsV1TermsReviewPostRequest struct { - ctx _context.Context - ApiService DefaultApi + ctx _context.Context + ApiService DefaultApi termsReview *TermsReview } -// Data to check terms for func (r ApiApiAuthorizationsV1TermsReviewPostRequest) TermsReview(termsReview TermsReview) ApiApiAuthorizationsV1TermsReviewPostRequest { r.termsReview = &termsReview return r @@ -14675,20 +14683,21 @@ func (r ApiApiAuthorizationsV1TermsReviewPostRequest) Execute() (TermsReviewResp } /* -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 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, + ctx: ctx, } } -// Execute executes the request -// @return TermsReviewResponse +/* + * Execute executes the request + * @return TermsReviewResponse + */ func (a *DefaultApiService) ApiAuthorizationsV1TermsReviewPostExecute(r ApiApiAuthorizationsV1TermsReviewPostRequest) (TermsReviewResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost diff --git a/pkg/apis/ams/amsclient/client.go b/pkg/api/ams/amsclient/client.go similarity index 97% rename from pkg/apis/ams/amsclient/client.go rename to pkg/api/ams/amsclient/client.go index ec9556b79..2ebbd75e6 100644 --- a/pkg/apis/ams/amsclient/client.go +++ b/pkg/api/ams/amsclient/client.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -18,7 +18,6 @@ import ( "errors" "fmt" "io" - "io/ioutil" "log" "mime/multipart" "net/http" @@ -101,7 +100,7 @@ func selectHeaderAccept(accepts []string) string { return strings.Join(accepts, ",") } -// contains is a case insensitive match, finding needle in a haystack +// contains is a case insenstive match, finding needle in a haystack func contains(haystack []string, needle string) bool { for _, a := range haystack { if strings.ToLower(a) == strings.ToLower(needle) { @@ -360,18 +359,6 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err *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) - if err != nil { - return - } - _, err = (*f).Seek(0, io.SeekStart) - return - } if xmlCheck.MatchString(contentType) { if err = xml.Unmarshal(b, v); err != nil { return err diff --git a/pkg/apis/ams/amsclient/configuration.go b/pkg/api/ams/amsclient/configuration.go similarity index 93% rename from pkg/apis/ams/amsclient/configuration.go rename to pkg/api/ams/amsclient/configuration.go index ce8236ea7..9d7e896d0 100644 --- a/pkg/apis/ams/amsclient/configuration.go +++ b/pkg/api/ams/amsclient/configuration.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -77,9 +77,9 @@ type ServerVariable struct { // ServerConfiguration stores the information about a server type ServerConfiguration struct { - URL string + URL string Description string - Variables map[string]ServerVariable + Variables map[string]ServerVariable } // ServerConfigurations stores multiple ServerConfiguration items @@ -100,25 +100,24 @@ type Configuration struct { // 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{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ { - URL: "https://api.openshift.com", + URL: "https://api.openshift.com", Description: "Main (production) server", }, { - URL: "https://api.stage.openshift.com", + URL: "https://api.stage.openshift.com", Description: "Staging server", }, { - URL: "", + URL: "", Description: "current domain", }, }, - OperationServers: map[string]ServerConfigurations{ - }, + OperationServers: map[string]ServerConfigurations{}, } return cfg } diff --git a/pkg/apis/ams/amsclient/default_api_mock.go b/pkg/api/ams/amsclient/default_api_mock.go similarity index 81% rename from pkg/apis/ams/amsclient/default_api_mock.go rename to pkg/api/ams/amsclient/default_api_mock.go index 23b4252d9..2d59cfd66 100644 --- a/pkg/apis/ams/amsclient/default_api_mock.go +++ b/pkg/api/ams/amsclient/default_api_mock.go @@ -4,8 +4,8 @@ package amsclient import ( - "context" - "net/http" + _context "context" + _nethttp "net/http" "sync" ) @@ -15,1079 +15,1079 @@ var _ DefaultApi = &DefaultApiMock{} // DefaultApiMock is a mock implementation of DefaultApi. // -// func TestSomethingThatUsesDefaultApi(t *testing.T) { +// func TestSomethingThatUsesDefaultApi(t *testing.T) { // -// // make and configure a mocked DefaultApi -// mockedDefaultApi := &DefaultApiMock{ -// ApiAccountsMgmtV1AccessTokenPostFunc: func(ctx context.Context) ApiApiAccountsMgmtV1AccessTokenPostRequest { -// panic("mock out the ApiAccountsMgmtV1AccessTokenPost method") -// }, -// ApiAccountsMgmtV1AccessTokenPostExecuteFunc: func(r ApiApiAccountsMgmtV1AccessTokenPostRequest) (AccessTokenCfg, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1AccessTokenPostExecute method") -// }, -// ApiAccountsMgmtV1AccountsGetFunc: func(ctx context.Context) ApiApiAccountsMgmtV1AccountsGetRequest { -// panic("mock out the ApiAccountsMgmtV1AccountsGet method") -// }, -// ApiAccountsMgmtV1AccountsGetExecuteFunc: func(r ApiApiAccountsMgmtV1AccountsGetRequest) (AccountList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1AccountsGetExecute method") -// }, -// ApiAccountsMgmtV1AccountsIdGetFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1AccountsIdGetRequest { -// panic("mock out the ApiAccountsMgmtV1AccountsIdGet method") -// }, -// ApiAccountsMgmtV1AccountsIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1AccountsIdGetRequest) (Account, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1AccountsIdGetExecute method") -// }, -// ApiAccountsMgmtV1AccountsIdLabelsGetFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest { -// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsGet method") -// }, -// ApiAccountsMgmtV1AccountsIdLabelsGetExecuteFunc: func(r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) (LabelList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsGetExecute method") -// }, -// ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteFunc: func(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest { -// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsKeyDelete method") -// }, -// ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest) (*http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecute method") -// }, -// ApiAccountsMgmtV1AccountsIdLabelsKeyGetFunc: func(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest { -// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsKeyGet method") -// }, -// ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecuteFunc: func(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest) (Label, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecute method") -// }, -// ApiAccountsMgmtV1AccountsIdLabelsKeyPatchFunc: func(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest { -// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsKeyPatch method") -// }, -// ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecuteFunc: func(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest) (Label, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecute method") -// }, -// ApiAccountsMgmtV1AccountsIdLabelsPostFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest { -// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsPost method") -// }, -// ApiAccountsMgmtV1AccountsIdLabelsPostExecuteFunc: func(r ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest) (Label, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsPostExecute method") -// }, -// ApiAccountsMgmtV1AccountsIdPatchFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1AccountsIdPatchRequest { -// panic("mock out the ApiAccountsMgmtV1AccountsIdPatch method") -// }, -// ApiAccountsMgmtV1AccountsIdPatchExecuteFunc: func(r ApiApiAccountsMgmtV1AccountsIdPatchRequest) (Account, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1AccountsIdPatchExecute method") -// }, -// ApiAccountsMgmtV1AccountsPostFunc: func(ctx context.Context) ApiApiAccountsMgmtV1AccountsPostRequest { -// panic("mock out the ApiAccountsMgmtV1AccountsPost method") -// }, -// ApiAccountsMgmtV1AccountsPostExecuteFunc: func(r ApiApiAccountsMgmtV1AccountsPostRequest) (Account, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1AccountsPostExecute method") -// }, -// ApiAccountsMgmtV1ClusterAuthorizationsPostFunc: func(ctx context.Context) ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest { -// panic("mock out the ApiAccountsMgmtV1ClusterAuthorizationsPost method") -// }, -// ApiAccountsMgmtV1ClusterAuthorizationsPostExecuteFunc: func(r ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest) (ClusterAuthorizationResponse, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1ClusterAuthorizationsPostExecute method") -// }, -// ApiAccountsMgmtV1ClusterRegistrationsPostFunc: func(ctx context.Context) ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest { -// panic("mock out the ApiAccountsMgmtV1ClusterRegistrationsPost method") -// }, -// ApiAccountsMgmtV1ClusterRegistrationsPostExecuteFunc: func(r ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest) (ClusterRegistrationResponse, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1ClusterRegistrationsPostExecute method") -// }, -// ApiAccountsMgmtV1CurrentAccountGetFunc: func(ctx context.Context) ApiApiAccountsMgmtV1CurrentAccountGetRequest { -// panic("mock out the ApiAccountsMgmtV1CurrentAccountGet method") -// }, -// ApiAccountsMgmtV1CurrentAccountGetExecuteFunc: func(r ApiApiAccountsMgmtV1CurrentAccountGetRequest) (Account, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1CurrentAccountGetExecute method") -// }, -// ApiAccountsMgmtV1ErrorsGetFunc: func(ctx context.Context) ApiApiAccountsMgmtV1ErrorsGetRequest { -// panic("mock out the ApiAccountsMgmtV1ErrorsGet method") -// }, -// ApiAccountsMgmtV1ErrorsGetExecuteFunc: func(r ApiApiAccountsMgmtV1ErrorsGetRequest) (ErrorList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1ErrorsGetExecute method") -// }, -// ApiAccountsMgmtV1ErrorsIdGetFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1ErrorsIdGetRequest { -// panic("mock out the ApiAccountsMgmtV1ErrorsIdGet method") -// }, -// ApiAccountsMgmtV1ErrorsIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1ErrorsIdGetRequest) (Error, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1ErrorsIdGetExecute method") -// }, -// ApiAccountsMgmtV1FeatureTogglesIdQueryPostFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest { -// panic("mock out the ApiAccountsMgmtV1FeatureTogglesIdQueryPost method") -// }, -// ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecuteFunc: func(r ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest) (FeatureToggle, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecute method") -// }, -// ApiAccountsMgmtV1LabelsGetFunc: func(ctx context.Context) ApiApiAccountsMgmtV1LabelsGetRequest { -// panic("mock out the ApiAccountsMgmtV1LabelsGet method") -// }, -// ApiAccountsMgmtV1LabelsGetExecuteFunc: func(r ApiApiAccountsMgmtV1LabelsGetRequest) (LabelList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1LabelsGetExecute method") -// }, -// ApiAccountsMgmtV1MetricsGetFunc: func(ctx context.Context) ApiApiAccountsMgmtV1MetricsGetRequest { -// panic("mock out the ApiAccountsMgmtV1MetricsGet method") -// }, -// ApiAccountsMgmtV1MetricsGetExecuteFunc: func(r ApiApiAccountsMgmtV1MetricsGetRequest) (MetricsList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1MetricsGetExecute method") -// }, -// ApiAccountsMgmtV1NotifyPostFunc: func(ctx context.Context) ApiApiAccountsMgmtV1NotifyPostRequest { -// panic("mock out the ApiAccountsMgmtV1NotifyPost method") -// }, -// ApiAccountsMgmtV1NotifyPostExecuteFunc: func(r ApiApiAccountsMgmtV1NotifyPostRequest) (*http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1NotifyPostExecute method") -// }, -// ApiAccountsMgmtV1OrganizationsGetFunc: func(ctx context.Context) ApiApiAccountsMgmtV1OrganizationsGetRequest { -// panic("mock out the ApiAccountsMgmtV1OrganizationsGet method") -// }, -// ApiAccountsMgmtV1OrganizationsGetExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsGetRequest) (OrganizationList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1OrganizationsGetExecute method") -// }, -// ApiAccountsMgmtV1OrganizationsIdGetFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdGetRequest { -// panic("mock out the ApiAccountsMgmtV1OrganizationsIdGet method") -// }, -// ApiAccountsMgmtV1OrganizationsIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsIdGetRequest) (Organization, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1OrganizationsIdGetExecute method") -// }, -// ApiAccountsMgmtV1OrganizationsIdLabelsGetFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest { -// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsGet method") -// }, -// ApiAccountsMgmtV1OrganizationsIdLabelsGetExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) (LabelList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsGetExecute method") -// }, -// ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteFunc: func(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest { -// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete method") -// }, -// ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest) (*http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecute method") -// }, -// ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetFunc: func(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest { -// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet method") -// }, -// ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest) (Label, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecute method") -// }, -// ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchFunc: func(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest { -// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch method") -// }, -// ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest) (Label, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecute method") -// }, -// ApiAccountsMgmtV1OrganizationsIdLabelsPostFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest { -// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsPost method") -// }, -// ApiAccountsMgmtV1OrganizationsIdLabelsPostExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest) (Label, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsPostExecute method") -// }, -// ApiAccountsMgmtV1OrganizationsIdPatchFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdPatchRequest { -// panic("mock out the ApiAccountsMgmtV1OrganizationsIdPatch method") -// }, -// ApiAccountsMgmtV1OrganizationsIdPatchExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsIdPatchRequest) (Organization, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1OrganizationsIdPatchExecute method") -// }, -// ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest { -// panic("mock out the ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet method") -// }, -// ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest) (Summary, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecute method") -// }, -// ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetFunc: func(ctx context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest { -// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet method") -// }, -// ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) (QuotaCostList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecute method") -// }, -// ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetFunc: func(ctx context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest { -// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet method") -// }, -// ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest) (QuotaSummaryList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecute method") -// }, -// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetFunc: func(ctx context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest { -// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet method") -// }, -// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) (ResourceQuotaList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecute method") -// }, -// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostFunc: func(ctx context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest { -// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost method") -// }, -// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest) (ResourceQuota, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecute method") -// }, -// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteFunc: func(ctx context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest { -// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete method") -// }, -// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest) (*http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecute method") -// }, -// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetFunc: func(ctx context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest { -// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet method") -// }, -// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest) (ResourceQuota, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecute method") -// }, -// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchFunc: func(ctx context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest { -// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch method") -// }, -// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest) (ResourceQuota, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecute method") -// }, -// ApiAccountsMgmtV1OrganizationsPostFunc: func(ctx context.Context) ApiApiAccountsMgmtV1OrganizationsPostRequest { -// panic("mock out the ApiAccountsMgmtV1OrganizationsPost method") -// }, -// ApiAccountsMgmtV1OrganizationsPostExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsPostRequest) (Organization, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1OrganizationsPostExecute method") -// }, -// ApiAccountsMgmtV1PlansGetFunc: func(ctx context.Context) ApiApiAccountsMgmtV1PlansGetRequest { -// panic("mock out the ApiAccountsMgmtV1PlansGet method") -// }, -// ApiAccountsMgmtV1PlansGetExecuteFunc: func(r ApiApiAccountsMgmtV1PlansGetRequest) (PlanList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1PlansGetExecute method") -// }, -// ApiAccountsMgmtV1PlansIdGetFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1PlansIdGetRequest { -// panic("mock out the ApiAccountsMgmtV1PlansIdGet method") -// }, -// ApiAccountsMgmtV1PlansIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1PlansIdGetRequest) (Plan, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1PlansIdGetExecute method") -// }, -// ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteFunc: func(ctx context.Context, externalResourceId string) ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest { -// panic("mock out the ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete method") -// }, -// ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest) (*http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecute method") -// }, -// ApiAccountsMgmtV1PullSecretsPostFunc: func(ctx context.Context) ApiApiAccountsMgmtV1PullSecretsPostRequest { -// panic("mock out the ApiAccountsMgmtV1PullSecretsPost method") -// }, -// ApiAccountsMgmtV1PullSecretsPostExecuteFunc: func(r ApiApiAccountsMgmtV1PullSecretsPostRequest) (AccessTokenCfg, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1PullSecretsPostExecute method") -// }, -// ApiAccountsMgmtV1RegistriesGetFunc: func(ctx context.Context) ApiApiAccountsMgmtV1RegistriesGetRequest { -// panic("mock out the ApiAccountsMgmtV1RegistriesGet method") -// }, -// ApiAccountsMgmtV1RegistriesGetExecuteFunc: func(r ApiApiAccountsMgmtV1RegistriesGetRequest) (RegistryList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1RegistriesGetExecute method") -// }, -// ApiAccountsMgmtV1RegistriesIdGetFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1RegistriesIdGetRequest { -// panic("mock out the ApiAccountsMgmtV1RegistriesIdGet method") -// }, -// ApiAccountsMgmtV1RegistriesIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1RegistriesIdGetRequest) (Registry, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1RegistriesIdGetExecute method") -// }, -// ApiAccountsMgmtV1RegistryCredentialsGetFunc: func(ctx context.Context) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest { -// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsGet method") -// }, -// ApiAccountsMgmtV1RegistryCredentialsGetExecuteFunc: func(r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) (RegistryCredentialList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsGetExecute method") -// }, -// ApiAccountsMgmtV1RegistryCredentialsIdDeleteFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest { -// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsIdDelete method") -// }, -// ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest) (*http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecute method") -// }, -// ApiAccountsMgmtV1RegistryCredentialsIdGetFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest { -// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsIdGet method") -// }, -// ApiAccountsMgmtV1RegistryCredentialsIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest) (RegistryCredential, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsIdGetExecute method") -// }, -// ApiAccountsMgmtV1RegistryCredentialsIdPatchFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest { -// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsIdPatch method") -// }, -// ApiAccountsMgmtV1RegistryCredentialsIdPatchExecuteFunc: func(r ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest) (RegistryCredential, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsIdPatchExecute method") -// }, -// ApiAccountsMgmtV1RegistryCredentialsPostFunc: func(ctx context.Context) ApiApiAccountsMgmtV1RegistryCredentialsPostRequest { -// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsPost method") -// }, -// ApiAccountsMgmtV1RegistryCredentialsPostExecuteFunc: func(r ApiApiAccountsMgmtV1RegistryCredentialsPostRequest) (RegistryCredential, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsPostExecute method") -// }, -// ApiAccountsMgmtV1ReservedResourcesGetFunc: func(ctx context.Context) ApiApiAccountsMgmtV1ReservedResourcesGetRequest { -// panic("mock out the ApiAccountsMgmtV1ReservedResourcesGet method") -// }, -// ApiAccountsMgmtV1ReservedResourcesGetExecuteFunc: func(r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) (ReservedResourceList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1ReservedResourcesGetExecute method") -// }, -// ApiAccountsMgmtV1ResourceQuotaGetFunc: func(ctx context.Context) ApiApiAccountsMgmtV1ResourceQuotaGetRequest { -// panic("mock out the ApiAccountsMgmtV1ResourceQuotaGet method") -// }, -// ApiAccountsMgmtV1ResourceQuotaGetExecuteFunc: func(r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) (ResourceQuotaList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1ResourceQuotaGetExecute method") -// }, -// ApiAccountsMgmtV1RoleBindingsGetFunc: func(ctx context.Context) ApiApiAccountsMgmtV1RoleBindingsGetRequest { -// panic("mock out the ApiAccountsMgmtV1RoleBindingsGet method") -// }, -// ApiAccountsMgmtV1RoleBindingsGetExecuteFunc: func(r ApiApiAccountsMgmtV1RoleBindingsGetRequest) (RoleBindingList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1RoleBindingsGetExecute method") -// }, -// ApiAccountsMgmtV1RoleBindingsIdDeleteFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest { -// panic("mock out the ApiAccountsMgmtV1RoleBindingsIdDelete method") -// }, -// ApiAccountsMgmtV1RoleBindingsIdDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest) (*http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1RoleBindingsIdDeleteExecute method") -// }, -// ApiAccountsMgmtV1RoleBindingsIdGetFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdGetRequest { -// panic("mock out the ApiAccountsMgmtV1RoleBindingsIdGet method") -// }, -// ApiAccountsMgmtV1RoleBindingsIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1RoleBindingsIdGetRequest) (RoleBinding, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1RoleBindingsIdGetExecute method") -// }, -// ApiAccountsMgmtV1RoleBindingsIdPatchFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest { -// panic("mock out the ApiAccountsMgmtV1RoleBindingsIdPatch method") -// }, -// ApiAccountsMgmtV1RoleBindingsIdPatchExecuteFunc: func(r ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest) (RoleBinding, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1RoleBindingsIdPatchExecute method") -// }, -// ApiAccountsMgmtV1RoleBindingsPostFunc: func(ctx context.Context) ApiApiAccountsMgmtV1RoleBindingsPostRequest { -// panic("mock out the ApiAccountsMgmtV1RoleBindingsPost method") -// }, -// ApiAccountsMgmtV1RoleBindingsPostExecuteFunc: func(r ApiApiAccountsMgmtV1RoleBindingsPostRequest) (RoleBinding, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1RoleBindingsPostExecute method") -// }, -// ApiAccountsMgmtV1RolesGetFunc: func(ctx context.Context) ApiApiAccountsMgmtV1RolesGetRequest { -// panic("mock out the ApiAccountsMgmtV1RolesGet method") -// }, -// ApiAccountsMgmtV1RolesGetExecuteFunc: func(r ApiApiAccountsMgmtV1RolesGetRequest) (RoleList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1RolesGetExecute method") -// }, -// ApiAccountsMgmtV1RolesIdGetFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1RolesIdGetRequest { -// panic("mock out the ApiAccountsMgmtV1RolesIdGet method") -// }, -// ApiAccountsMgmtV1RolesIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1RolesIdGetRequest) (Role, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1RolesIdGetExecute method") -// }, -// ApiAccountsMgmtV1SkuRulesGetFunc: func(ctx context.Context) ApiApiAccountsMgmtV1SkuRulesGetRequest { -// panic("mock out the ApiAccountsMgmtV1SkuRulesGet method") -// }, -// ApiAccountsMgmtV1SkuRulesGetExecuteFunc: func(r ApiApiAccountsMgmtV1SkuRulesGetRequest) (SkuRulesList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SkuRulesGetExecute method") -// }, -// ApiAccountsMgmtV1SkuRulesIdGetFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1SkuRulesIdGetRequest { -// panic("mock out the ApiAccountsMgmtV1SkuRulesIdGet method") -// }, -// ApiAccountsMgmtV1SkuRulesIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1SkuRulesIdGetRequest) (SkuRules, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SkuRulesIdGetExecute method") -// }, -// ApiAccountsMgmtV1SkusGetFunc: func(ctx context.Context) ApiApiAccountsMgmtV1SkusGetRequest { -// panic("mock out the ApiAccountsMgmtV1SkusGet method") -// }, -// ApiAccountsMgmtV1SkusGetExecuteFunc: func(r ApiApiAccountsMgmtV1SkusGetRequest) (SkuList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SkusGetExecute method") -// }, -// ApiAccountsMgmtV1SkusIdGetFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1SkusIdGetRequest { -// panic("mock out the ApiAccountsMgmtV1SkusIdGet method") -// }, -// ApiAccountsMgmtV1SkusIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1SkusIdGetRequest) (SKU, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SkusIdGetExecute method") -// }, -// ApiAccountsMgmtV1SubscriptionsGetFunc: func(ctx context.Context) ApiApiAccountsMgmtV1SubscriptionsGetRequest { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsGet method") -// }, -// ApiAccountsMgmtV1SubscriptionsGetExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsGetRequest) (SubscriptionList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsGetExecute method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdDeleteFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdDelete method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest) (*http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdDeleteExecute method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdGetFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdGet method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) (Subscription, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdGetExecute method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdLabelsGetFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsGet method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) (LabelList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecute method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteFunc: func(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest) (*http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecute method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetFunc: func(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest) (Label, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecute method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchFunc: func(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest) (Label, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecute method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdLabelsPostFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsPost method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest) (Label, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecute method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdNotifyPostFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdNotifyPost method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest) (*http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecute method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdPatchFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdPatch method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdPatchExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest) (Subscription, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdPatchExecute method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) (ReservedResourceList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecute method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetFunc: func(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet method") -// }, -// ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest) (*http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecute method") -// }, -// ApiAccountsMgmtV1SubscriptionsPostFunc: func(ctx context.Context) ApiApiAccountsMgmtV1SubscriptionsPostRequest { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsPost method") -// }, -// ApiAccountsMgmtV1SubscriptionsPostExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsPostRequest) (Subscription, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsPostExecute method") -// }, -// ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteFunc: func(ctx context.Context, subId string, accountId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete method") -// }, -// ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest) (*http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecute method") -// }, -// ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetFunc: func(ctx context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet method") -// }, -// ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) (AccountList, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecute method") -// }, -// ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostFunc: func(ctx context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost method") -// }, -// ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest) (Account, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecute method") -// }, -// ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetFunc: func(ctx context.Context, subId string, reservedResourceId string) ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet method") -// }, -// ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest) (ReservedResource, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecute method") -// }, -// ApiAccountsMgmtV1SupportCasesCaseIdDeleteFunc: func(ctx context.Context, caseId string) ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest { -// panic("mock out the ApiAccountsMgmtV1SupportCasesCaseIdDelete method") -// }, -// ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest) (*http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecute method") -// }, -// ApiAccountsMgmtV1SupportCasesPostFunc: func(ctx context.Context) ApiApiAccountsMgmtV1SupportCasesPostRequest { -// panic("mock out the ApiAccountsMgmtV1SupportCasesPost method") -// }, -// ApiAccountsMgmtV1SupportCasesPostExecuteFunc: func(r ApiApiAccountsMgmtV1SupportCasesPostRequest) (SupportCasesCreatedResponse, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1SupportCasesPostExecute method") -// }, -// ApiAccountsMgmtV1TokenAuthorizationPostFunc: func(ctx context.Context) ApiApiAccountsMgmtV1TokenAuthorizationPostRequest { -// panic("mock out the ApiAccountsMgmtV1TokenAuthorizationPost method") -// }, -// ApiAccountsMgmtV1TokenAuthorizationPostExecuteFunc: func(r ApiApiAccountsMgmtV1TokenAuthorizationPostRequest) (TokenAuthorizationResponse, *http.Response, error) { -// panic("mock out the ApiAccountsMgmtV1TokenAuthorizationPostExecute method") -// }, -// ApiAuthorizationsV1AccessReviewPostFunc: func(ctx context.Context) ApiApiAuthorizationsV1AccessReviewPostRequest { -// panic("mock out the ApiAuthorizationsV1AccessReviewPost method") -// }, -// ApiAuthorizationsV1AccessReviewPostExecuteFunc: func(r ApiApiAuthorizationsV1AccessReviewPostRequest) (AccessReviewResponse, *http.Response, error) { -// panic("mock out the ApiAuthorizationsV1AccessReviewPostExecute method") -// }, -// ApiAuthorizationsV1CapabilityReviewPostFunc: func(ctx context.Context) ApiApiAuthorizationsV1CapabilityReviewPostRequest { -// panic("mock out the ApiAuthorizationsV1CapabilityReviewPost method") -// }, -// ApiAuthorizationsV1CapabilityReviewPostExecuteFunc: func(r ApiApiAuthorizationsV1CapabilityReviewPostRequest) (CapabilityReview, *http.Response, error) { -// panic("mock out the ApiAuthorizationsV1CapabilityReviewPostExecute method") -// }, -// ApiAuthorizationsV1ExportControlReviewPostFunc: func(ctx context.Context) ApiApiAuthorizationsV1ExportControlReviewPostRequest { -// panic("mock out the ApiAuthorizationsV1ExportControlReviewPost method") -// }, -// ApiAuthorizationsV1ExportControlReviewPostExecuteFunc: func(r ApiApiAuthorizationsV1ExportControlReviewPostRequest) (ExportControlReview, *http.Response, error) { -// panic("mock out the ApiAuthorizationsV1ExportControlReviewPostExecute method") -// }, -// ApiAuthorizationsV1ResourceReviewPostFunc: func(ctx context.Context) ApiApiAuthorizationsV1ResourceReviewPostRequest { -// panic("mock out the ApiAuthorizationsV1ResourceReviewPost method") -// }, -// ApiAuthorizationsV1ResourceReviewPostExecuteFunc: func(r ApiApiAuthorizationsV1ResourceReviewPostRequest) (ResourceReview, *http.Response, error) { -// panic("mock out the ApiAuthorizationsV1ResourceReviewPostExecute method") -// }, -// ApiAuthorizationsV1SelfAccessReviewPostFunc: func(ctx context.Context) ApiApiAuthorizationsV1SelfAccessReviewPostRequest { -// panic("mock out the ApiAuthorizationsV1SelfAccessReviewPost method") -// }, -// ApiAuthorizationsV1SelfAccessReviewPostExecuteFunc: func(r ApiApiAuthorizationsV1SelfAccessReviewPostRequest) (AccessReviewResponse, *http.Response, error) { -// panic("mock out the ApiAuthorizationsV1SelfAccessReviewPostExecute method") -// }, -// ApiAuthorizationsV1SelfResourceReviewPostFunc: func(ctx context.Context) ApiApiAuthorizationsV1SelfResourceReviewPostRequest { -// panic("mock out the ApiAuthorizationsV1SelfResourceReviewPost method") -// }, -// ApiAuthorizationsV1SelfResourceReviewPostExecuteFunc: func(r ApiApiAuthorizationsV1SelfResourceReviewPostRequest) (SelfResourceReview, *http.Response, error) { -// panic("mock out the ApiAuthorizationsV1SelfResourceReviewPostExecute method") -// }, -// ApiAuthorizationsV1SelfTermsReviewPostFunc: func(ctx context.Context) ApiApiAuthorizationsV1SelfTermsReviewPostRequest { -// panic("mock out the ApiAuthorizationsV1SelfTermsReviewPost method") -// }, -// ApiAuthorizationsV1SelfTermsReviewPostExecuteFunc: func(r ApiApiAuthorizationsV1SelfTermsReviewPostRequest) (TermsReviewResponse, *http.Response, error) { -// panic("mock out the ApiAuthorizationsV1SelfTermsReviewPostExecute method") -// }, -// ApiAuthorizationsV1TermsReviewPostFunc: func(ctx context.Context) ApiApiAuthorizationsV1TermsReviewPostRequest { -// panic("mock out the ApiAuthorizationsV1TermsReviewPost method") -// }, -// ApiAuthorizationsV1TermsReviewPostExecuteFunc: func(r ApiApiAuthorizationsV1TermsReviewPostRequest) (TermsReviewResponse, *http.Response, error) { -// panic("mock out the ApiAuthorizationsV1TermsReviewPostExecute method") -// }, -// } +// // make and configure a mocked DefaultApi +// mockedDefaultApi := &DefaultApiMock{ +// ApiAccountsMgmtV1AccessTokenPostFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1AccessTokenPostRequest { +// panic("mock out the ApiAccountsMgmtV1AccessTokenPost method") +// }, +// ApiAccountsMgmtV1AccessTokenPostExecuteFunc: func(r ApiApiAccountsMgmtV1AccessTokenPostRequest) (AccessTokenCfg, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1AccessTokenPostExecute method") +// }, +// ApiAccountsMgmtV1AccountsGetFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1AccountsGetRequest { +// panic("mock out the ApiAccountsMgmtV1AccountsGet method") +// }, +// ApiAccountsMgmtV1AccountsGetExecuteFunc: func(r ApiApiAccountsMgmtV1AccountsGetRequest) (AccountList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1AccountsGetExecute method") +// }, +// ApiAccountsMgmtV1AccountsIdGetFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdGetRequest { +// panic("mock out the ApiAccountsMgmtV1AccountsIdGet method") +// }, +// ApiAccountsMgmtV1AccountsIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1AccountsIdGetRequest) (Account, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1AccountsIdGetExecute method") +// }, +// ApiAccountsMgmtV1AccountsIdLabelsGetFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest { +// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsGet method") +// }, +// ApiAccountsMgmtV1AccountsIdLabelsGetExecuteFunc: func(r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsGetExecute method") +// }, +// ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteFunc: func(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest { +// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsKeyDelete method") +// }, +// ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecute method") +// }, +// ApiAccountsMgmtV1AccountsIdLabelsKeyGetFunc: func(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest { +// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsKeyGet method") +// }, +// ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecuteFunc: func(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecute method") +// }, +// ApiAccountsMgmtV1AccountsIdLabelsKeyPatchFunc: func(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest { +// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsKeyPatch method") +// }, +// ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecuteFunc: func(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecute method") +// }, +// ApiAccountsMgmtV1AccountsIdLabelsPostFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest { +// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsPost method") +// }, +// ApiAccountsMgmtV1AccountsIdLabelsPostExecuteFunc: func(r ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest) (Label, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1AccountsIdLabelsPostExecute method") +// }, +// ApiAccountsMgmtV1AccountsIdPatchFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdPatchRequest { +// panic("mock out the ApiAccountsMgmtV1AccountsIdPatch method") +// }, +// ApiAccountsMgmtV1AccountsIdPatchExecuteFunc: func(r ApiApiAccountsMgmtV1AccountsIdPatchRequest) (Account, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1AccountsIdPatchExecute method") +// }, +// ApiAccountsMgmtV1AccountsPostFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1AccountsPostRequest { +// panic("mock out the ApiAccountsMgmtV1AccountsPost method") +// }, +// ApiAccountsMgmtV1AccountsPostExecuteFunc: func(r ApiApiAccountsMgmtV1AccountsPostRequest) (Account, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1AccountsPostExecute method") +// }, +// ApiAccountsMgmtV1ClusterAuthorizationsPostFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest { +// panic("mock out the ApiAccountsMgmtV1ClusterAuthorizationsPost method") +// }, +// ApiAccountsMgmtV1ClusterAuthorizationsPostExecuteFunc: func(r ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest) (ClusterAuthorizationResponse, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1ClusterAuthorizationsPostExecute method") +// }, +// ApiAccountsMgmtV1ClusterRegistrationsPostFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest { +// panic("mock out the ApiAccountsMgmtV1ClusterRegistrationsPost method") +// }, +// ApiAccountsMgmtV1ClusterRegistrationsPostExecuteFunc: func(r ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest) (ClusterRegistrationResponse, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1ClusterRegistrationsPostExecute method") +// }, +// ApiAccountsMgmtV1CurrentAccountGetFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1CurrentAccountGetRequest { +// panic("mock out the ApiAccountsMgmtV1CurrentAccountGet method") +// }, +// ApiAccountsMgmtV1CurrentAccountGetExecuteFunc: func(r ApiApiAccountsMgmtV1CurrentAccountGetRequest) (Account, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1CurrentAccountGetExecute method") +// }, +// ApiAccountsMgmtV1ErrorsGetFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1ErrorsGetRequest { +// panic("mock out the ApiAccountsMgmtV1ErrorsGet method") +// }, +// ApiAccountsMgmtV1ErrorsGetExecuteFunc: func(r ApiApiAccountsMgmtV1ErrorsGetRequest) (ErrorList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1ErrorsGetExecute method") +// }, +// ApiAccountsMgmtV1ErrorsIdGetFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1ErrorsIdGetRequest { +// panic("mock out the ApiAccountsMgmtV1ErrorsIdGet method") +// }, +// ApiAccountsMgmtV1ErrorsIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1ErrorsIdGetRequest) (Error, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1ErrorsIdGetExecute method") +// }, +// ApiAccountsMgmtV1FeatureTogglesIdQueryPostFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest { +// panic("mock out the ApiAccountsMgmtV1FeatureTogglesIdQueryPost method") +// }, +// ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecuteFunc: func(r ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest) (FeatureToggle, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecute method") +// }, +// ApiAccountsMgmtV1LabelsGetFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1LabelsGetRequest { +// panic("mock out the ApiAccountsMgmtV1LabelsGet method") +// }, +// ApiAccountsMgmtV1LabelsGetExecuteFunc: func(r ApiApiAccountsMgmtV1LabelsGetRequest) (LabelList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1LabelsGetExecute method") +// }, +// ApiAccountsMgmtV1MetricsGetFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1MetricsGetRequest { +// panic("mock out the ApiAccountsMgmtV1MetricsGet method") +// }, +// ApiAccountsMgmtV1MetricsGetExecuteFunc: func(r ApiApiAccountsMgmtV1MetricsGetRequest) (MetricsList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1MetricsGetExecute method") +// }, +// ApiAccountsMgmtV1NotifyPostFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1NotifyPostRequest { +// panic("mock out the ApiAccountsMgmtV1NotifyPost method") +// }, +// ApiAccountsMgmtV1NotifyPostExecuteFunc: func(r ApiApiAccountsMgmtV1NotifyPostRequest) (*_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1NotifyPostExecute method") +// }, +// ApiAccountsMgmtV1OrganizationsGetFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1OrganizationsGetRequest { +// panic("mock out the ApiAccountsMgmtV1OrganizationsGet method") +// }, +// ApiAccountsMgmtV1OrganizationsGetExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsGetRequest) (OrganizationList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1OrganizationsGetExecute method") +// }, +// ApiAccountsMgmtV1OrganizationsIdGetFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdGetRequest { +// panic("mock out the ApiAccountsMgmtV1OrganizationsIdGet method") +// }, +// ApiAccountsMgmtV1OrganizationsIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsIdGetRequest) (Organization, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1OrganizationsIdGetExecute method") +// }, +// ApiAccountsMgmtV1OrganizationsIdLabelsGetFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest { +// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsGet method") +// }, +// ApiAccountsMgmtV1OrganizationsIdLabelsGetExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsGetExecute method") +// }, +// ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteFunc: func(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest { +// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete method") +// }, +// ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecute method") +// }, +// ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetFunc: func(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest { +// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet method") +// }, +// ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecute method") +// }, +// ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchFunc: func(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest { +// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch method") +// }, +// ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecute method") +// }, +// ApiAccountsMgmtV1OrganizationsIdLabelsPostFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest { +// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsPost method") +// }, +// ApiAccountsMgmtV1OrganizationsIdLabelsPostExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest) (Label, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1OrganizationsIdLabelsPostExecute method") +// }, +// ApiAccountsMgmtV1OrganizationsIdPatchFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdPatchRequest { +// panic("mock out the ApiAccountsMgmtV1OrganizationsIdPatch method") +// }, +// ApiAccountsMgmtV1OrganizationsIdPatchExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsIdPatchRequest) (Organization, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1OrganizationsIdPatchExecute method") +// }, +// ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest { +// panic("mock out the ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet method") +// }, +// ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest) (Summary, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecute method") +// }, +// ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetFunc: func(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest { +// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet method") +// }, +// ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) (QuotaCostList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecute method") +// }, +// ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetFunc: func(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest { +// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet method") +// }, +// ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest) (QuotaSummaryList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecute method") +// }, +// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetFunc: func(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest { +// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet method") +// }, +// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) (ResourceQuotaList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecute method") +// }, +// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostFunc: func(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest { +// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost method") +// }, +// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest) (ResourceQuota, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecute method") +// }, +// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteFunc: func(ctx _context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest { +// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete method") +// }, +// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest) (*_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecute method") +// }, +// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetFunc: func(ctx _context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest { +// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet method") +// }, +// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest) (ResourceQuota, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecute method") +// }, +// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchFunc: func(ctx _context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest { +// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch method") +// }, +// ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest) (ResourceQuota, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecute method") +// }, +// ApiAccountsMgmtV1OrganizationsPostFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1OrganizationsPostRequest { +// panic("mock out the ApiAccountsMgmtV1OrganizationsPost method") +// }, +// ApiAccountsMgmtV1OrganizationsPostExecuteFunc: func(r ApiApiAccountsMgmtV1OrganizationsPostRequest) (Organization, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1OrganizationsPostExecute method") +// }, +// ApiAccountsMgmtV1PlansGetFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1PlansGetRequest { +// panic("mock out the ApiAccountsMgmtV1PlansGet method") +// }, +// ApiAccountsMgmtV1PlansGetExecuteFunc: func(r ApiApiAccountsMgmtV1PlansGetRequest) (PlanList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1PlansGetExecute method") +// }, +// ApiAccountsMgmtV1PlansIdGetFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1PlansIdGetRequest { +// panic("mock out the ApiAccountsMgmtV1PlansIdGet method") +// }, +// ApiAccountsMgmtV1PlansIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1PlansIdGetRequest) (Plan, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1PlansIdGetExecute method") +// }, +// ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteFunc: func(ctx _context.Context, externalResourceId string) ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest { +// panic("mock out the ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete method") +// }, +// ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest) (*_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecute method") +// }, +// ApiAccountsMgmtV1PullSecretsPostFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1PullSecretsPostRequest { +// panic("mock out the ApiAccountsMgmtV1PullSecretsPost method") +// }, +// ApiAccountsMgmtV1PullSecretsPostExecuteFunc: func(r ApiApiAccountsMgmtV1PullSecretsPostRequest) (AccessTokenCfg, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1PullSecretsPostExecute method") +// }, +// ApiAccountsMgmtV1RegistriesGetFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1RegistriesGetRequest { +// panic("mock out the ApiAccountsMgmtV1RegistriesGet method") +// }, +// ApiAccountsMgmtV1RegistriesGetExecuteFunc: func(r ApiApiAccountsMgmtV1RegistriesGetRequest) (RegistryList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1RegistriesGetExecute method") +// }, +// ApiAccountsMgmtV1RegistriesIdGetFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistriesIdGetRequest { +// panic("mock out the ApiAccountsMgmtV1RegistriesIdGet method") +// }, +// ApiAccountsMgmtV1RegistriesIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1RegistriesIdGetRequest) (Registry, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1RegistriesIdGetExecute method") +// }, +// ApiAccountsMgmtV1RegistryCredentialsGetFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest { +// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsGet method") +// }, +// ApiAccountsMgmtV1RegistryCredentialsGetExecuteFunc: func(r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) (RegistryCredentialList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsGetExecute method") +// }, +// ApiAccountsMgmtV1RegistryCredentialsIdDeleteFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest { +// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsIdDelete method") +// }, +// ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest) (*_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecute method") +// }, +// ApiAccountsMgmtV1RegistryCredentialsIdGetFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest { +// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsIdGet method") +// }, +// ApiAccountsMgmtV1RegistryCredentialsIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest) (RegistryCredential, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsIdGetExecute method") +// }, +// ApiAccountsMgmtV1RegistryCredentialsIdPatchFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest { +// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsIdPatch method") +// }, +// ApiAccountsMgmtV1RegistryCredentialsIdPatchExecuteFunc: func(r ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest) (RegistryCredential, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsIdPatchExecute method") +// }, +// ApiAccountsMgmtV1RegistryCredentialsPostFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1RegistryCredentialsPostRequest { +// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsPost method") +// }, +// ApiAccountsMgmtV1RegistryCredentialsPostExecuteFunc: func(r ApiApiAccountsMgmtV1RegistryCredentialsPostRequest) (RegistryCredential, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1RegistryCredentialsPostExecute method") +// }, +// ApiAccountsMgmtV1ReservedResourcesGetFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1ReservedResourcesGetRequest { +// panic("mock out the ApiAccountsMgmtV1ReservedResourcesGet method") +// }, +// ApiAccountsMgmtV1ReservedResourcesGetExecuteFunc: func(r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) (ReservedResourceList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1ReservedResourcesGetExecute method") +// }, +// ApiAccountsMgmtV1ResourceQuotaGetFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1ResourceQuotaGetRequest { +// panic("mock out the ApiAccountsMgmtV1ResourceQuotaGet method") +// }, +// ApiAccountsMgmtV1ResourceQuotaGetExecuteFunc: func(r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) (ResourceQuotaList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1ResourceQuotaGetExecute method") +// }, +// ApiAccountsMgmtV1RoleBindingsGetFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1RoleBindingsGetRequest { +// panic("mock out the ApiAccountsMgmtV1RoleBindingsGet method") +// }, +// ApiAccountsMgmtV1RoleBindingsGetExecuteFunc: func(r ApiApiAccountsMgmtV1RoleBindingsGetRequest) (RoleBindingList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1RoleBindingsGetExecute method") +// }, +// ApiAccountsMgmtV1RoleBindingsIdDeleteFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest { +// panic("mock out the ApiAccountsMgmtV1RoleBindingsIdDelete method") +// }, +// ApiAccountsMgmtV1RoleBindingsIdDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest) (*_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1RoleBindingsIdDeleteExecute method") +// }, +// ApiAccountsMgmtV1RoleBindingsIdGetFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdGetRequest { +// panic("mock out the ApiAccountsMgmtV1RoleBindingsIdGet method") +// }, +// ApiAccountsMgmtV1RoleBindingsIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1RoleBindingsIdGetRequest) (RoleBinding, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1RoleBindingsIdGetExecute method") +// }, +// ApiAccountsMgmtV1RoleBindingsIdPatchFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest { +// panic("mock out the ApiAccountsMgmtV1RoleBindingsIdPatch method") +// }, +// ApiAccountsMgmtV1RoleBindingsIdPatchExecuteFunc: func(r ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest) (RoleBinding, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1RoleBindingsIdPatchExecute method") +// }, +// ApiAccountsMgmtV1RoleBindingsPostFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1RoleBindingsPostRequest { +// panic("mock out the ApiAccountsMgmtV1RoleBindingsPost method") +// }, +// ApiAccountsMgmtV1RoleBindingsPostExecuteFunc: func(r ApiApiAccountsMgmtV1RoleBindingsPostRequest) (RoleBinding, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1RoleBindingsPostExecute method") +// }, +// ApiAccountsMgmtV1RolesGetFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1RolesGetRequest { +// panic("mock out the ApiAccountsMgmtV1RolesGet method") +// }, +// ApiAccountsMgmtV1RolesGetExecuteFunc: func(r ApiApiAccountsMgmtV1RolesGetRequest) (RoleList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1RolesGetExecute method") +// }, +// ApiAccountsMgmtV1RolesIdGetFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1RolesIdGetRequest { +// panic("mock out the ApiAccountsMgmtV1RolesIdGet method") +// }, +// ApiAccountsMgmtV1RolesIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1RolesIdGetRequest) (Role, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1RolesIdGetExecute method") +// }, +// ApiAccountsMgmtV1SkuRulesGetFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1SkuRulesGetRequest { +// panic("mock out the ApiAccountsMgmtV1SkuRulesGet method") +// }, +// ApiAccountsMgmtV1SkuRulesGetExecuteFunc: func(r ApiApiAccountsMgmtV1SkuRulesGetRequest) (SkuRulesList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SkuRulesGetExecute method") +// }, +// ApiAccountsMgmtV1SkuRulesIdGetFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SkuRulesIdGetRequest { +// panic("mock out the ApiAccountsMgmtV1SkuRulesIdGet method") +// }, +// ApiAccountsMgmtV1SkuRulesIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1SkuRulesIdGetRequest) (SkuRules, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SkuRulesIdGetExecute method") +// }, +// ApiAccountsMgmtV1SkusGetFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1SkusGetRequest { +// panic("mock out the ApiAccountsMgmtV1SkusGet method") +// }, +// ApiAccountsMgmtV1SkusGetExecuteFunc: func(r ApiApiAccountsMgmtV1SkusGetRequest) (SkuList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SkusGetExecute method") +// }, +// ApiAccountsMgmtV1SkusIdGetFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SkusIdGetRequest { +// panic("mock out the ApiAccountsMgmtV1SkusIdGet method") +// }, +// ApiAccountsMgmtV1SkusIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1SkusIdGetRequest) (SKU, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SkusIdGetExecute method") +// }, +// ApiAccountsMgmtV1SubscriptionsGetFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1SubscriptionsGetRequest { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsGet method") +// }, +// ApiAccountsMgmtV1SubscriptionsGetExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsGetRequest) (SubscriptionList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsGetExecute method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdDeleteFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdDelete method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest) (*_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdDeleteExecute method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdGetFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdGet method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) (Subscription, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdGetExecute method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdLabelsGetFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsGet method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecute method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteFunc: func(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecute method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetFunc: func(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecute method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchFunc: func(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecute method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdLabelsPostFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsPost method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest) (Label, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecute method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdNotifyPostFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdNotifyPost method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest) (*_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecute method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdPatchFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdPatch method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdPatchExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest) (Subscription, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdPatchExecute method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) (ReservedResourceList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecute method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetFunc: func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet method") +// }, +// ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest) (*_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecute method") +// }, +// ApiAccountsMgmtV1SubscriptionsPostFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1SubscriptionsPostRequest { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsPost method") +// }, +// ApiAccountsMgmtV1SubscriptionsPostExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsPostRequest) (Subscription, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsPostExecute method") +// }, +// ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteFunc: func(ctx _context.Context, subId string, accountId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete method") +// }, +// ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest) (*_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecute method") +// }, +// ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetFunc: func(ctx _context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet method") +// }, +// ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) (AccountList, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecute method") +// }, +// ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostFunc: func(ctx _context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost method") +// }, +// ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest) (Account, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecute method") +// }, +// ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetFunc: func(ctx _context.Context, subId string, reservedResourceId string) ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet method") +// }, +// ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecuteFunc: func(r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest) (ReservedResource, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecute method") +// }, +// ApiAccountsMgmtV1SupportCasesCaseIdDeleteFunc: func(ctx _context.Context, caseId string) ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest { +// panic("mock out the ApiAccountsMgmtV1SupportCasesCaseIdDelete method") +// }, +// ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecuteFunc: func(r ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest) (*_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecute method") +// }, +// ApiAccountsMgmtV1SupportCasesPostFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1SupportCasesPostRequest { +// panic("mock out the ApiAccountsMgmtV1SupportCasesPost method") +// }, +// ApiAccountsMgmtV1SupportCasesPostExecuteFunc: func(r ApiApiAccountsMgmtV1SupportCasesPostRequest) (SupportCasesCreatedResponse, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1SupportCasesPostExecute method") +// }, +// ApiAccountsMgmtV1TokenAuthorizationPostFunc: func(ctx _context.Context) ApiApiAccountsMgmtV1TokenAuthorizationPostRequest { +// panic("mock out the ApiAccountsMgmtV1TokenAuthorizationPost method") +// }, +// ApiAccountsMgmtV1TokenAuthorizationPostExecuteFunc: func(r ApiApiAccountsMgmtV1TokenAuthorizationPostRequest) (TokenAuthorizationResponse, *_nethttp.Response, error) { +// panic("mock out the ApiAccountsMgmtV1TokenAuthorizationPostExecute method") +// }, +// ApiAuthorizationsV1AccessReviewPostFunc: func(ctx _context.Context) ApiApiAuthorizationsV1AccessReviewPostRequest { +// panic("mock out the ApiAuthorizationsV1AccessReviewPost method") +// }, +// ApiAuthorizationsV1AccessReviewPostExecuteFunc: func(r ApiApiAuthorizationsV1AccessReviewPostRequest) (AccessReviewResponse, *_nethttp.Response, error) { +// panic("mock out the ApiAuthorizationsV1AccessReviewPostExecute method") +// }, +// ApiAuthorizationsV1CapabilityReviewPostFunc: func(ctx _context.Context) ApiApiAuthorizationsV1CapabilityReviewPostRequest { +// panic("mock out the ApiAuthorizationsV1CapabilityReviewPost method") +// }, +// ApiAuthorizationsV1CapabilityReviewPostExecuteFunc: func(r ApiApiAuthorizationsV1CapabilityReviewPostRequest) (CapabilityReview, *_nethttp.Response, error) { +// panic("mock out the ApiAuthorizationsV1CapabilityReviewPostExecute method") +// }, +// ApiAuthorizationsV1ExportControlReviewPostFunc: func(ctx _context.Context) ApiApiAuthorizationsV1ExportControlReviewPostRequest { +// panic("mock out the ApiAuthorizationsV1ExportControlReviewPost method") +// }, +// ApiAuthorizationsV1ExportControlReviewPostExecuteFunc: func(r ApiApiAuthorizationsV1ExportControlReviewPostRequest) (ExportControlReview, *_nethttp.Response, error) { +// panic("mock out the ApiAuthorizationsV1ExportControlReviewPostExecute method") +// }, +// ApiAuthorizationsV1ResourceReviewPostFunc: func(ctx _context.Context) ApiApiAuthorizationsV1ResourceReviewPostRequest { +// panic("mock out the ApiAuthorizationsV1ResourceReviewPost method") +// }, +// ApiAuthorizationsV1ResourceReviewPostExecuteFunc: func(r ApiApiAuthorizationsV1ResourceReviewPostRequest) (ResourceReview, *_nethttp.Response, error) { +// panic("mock out the ApiAuthorizationsV1ResourceReviewPostExecute method") +// }, +// ApiAuthorizationsV1SelfAccessReviewPostFunc: func(ctx _context.Context) ApiApiAuthorizationsV1SelfAccessReviewPostRequest { +// panic("mock out the ApiAuthorizationsV1SelfAccessReviewPost method") +// }, +// ApiAuthorizationsV1SelfAccessReviewPostExecuteFunc: func(r ApiApiAuthorizationsV1SelfAccessReviewPostRequest) (AccessReviewResponse, *_nethttp.Response, error) { +// panic("mock out the ApiAuthorizationsV1SelfAccessReviewPostExecute method") +// }, +// ApiAuthorizationsV1SelfResourceReviewPostFunc: func(ctx _context.Context) ApiApiAuthorizationsV1SelfResourceReviewPostRequest { +// panic("mock out the ApiAuthorizationsV1SelfResourceReviewPost method") +// }, +// ApiAuthorizationsV1SelfResourceReviewPostExecuteFunc: func(r ApiApiAuthorizationsV1SelfResourceReviewPostRequest) (SelfResourceReview, *_nethttp.Response, error) { +// panic("mock out the ApiAuthorizationsV1SelfResourceReviewPostExecute method") +// }, +// ApiAuthorizationsV1SelfTermsReviewPostFunc: func(ctx _context.Context) ApiApiAuthorizationsV1SelfTermsReviewPostRequest { +// panic("mock out the ApiAuthorizationsV1SelfTermsReviewPost method") +// }, +// ApiAuthorizationsV1SelfTermsReviewPostExecuteFunc: func(r ApiApiAuthorizationsV1SelfTermsReviewPostRequest) (TermsReviewResponse, *_nethttp.Response, error) { +// panic("mock out the ApiAuthorizationsV1SelfTermsReviewPostExecute method") +// }, +// ApiAuthorizationsV1TermsReviewPostFunc: func(ctx _context.Context) ApiApiAuthorizationsV1TermsReviewPostRequest { +// panic("mock out the ApiAuthorizationsV1TermsReviewPost method") +// }, +// ApiAuthorizationsV1TermsReviewPostExecuteFunc: func(r ApiApiAuthorizationsV1TermsReviewPostRequest) (TermsReviewResponse, *_nethttp.Response, error) { +// panic("mock out the ApiAuthorizationsV1TermsReviewPostExecute method") +// }, +// } // -// // use mockedDefaultApi in code that requires DefaultApi -// // and then make assertions. +// // use mockedDefaultApi in code that requires DefaultApi +// // and then make assertions. // -// } +// } type DefaultApiMock struct { // ApiAccountsMgmtV1AccessTokenPostFunc mocks the ApiAccountsMgmtV1AccessTokenPost method. - ApiAccountsMgmtV1AccessTokenPostFunc func(ctx context.Context) ApiApiAccountsMgmtV1AccessTokenPostRequest + ApiAccountsMgmtV1AccessTokenPostFunc func(ctx _context.Context) ApiApiAccountsMgmtV1AccessTokenPostRequest // ApiAccountsMgmtV1AccessTokenPostExecuteFunc mocks the ApiAccountsMgmtV1AccessTokenPostExecute method. - ApiAccountsMgmtV1AccessTokenPostExecuteFunc func(r ApiApiAccountsMgmtV1AccessTokenPostRequest) (AccessTokenCfg, *http.Response, error) + ApiAccountsMgmtV1AccessTokenPostExecuteFunc func(r ApiApiAccountsMgmtV1AccessTokenPostRequest) (AccessTokenCfg, *_nethttp.Response, error) // ApiAccountsMgmtV1AccountsGetFunc mocks the ApiAccountsMgmtV1AccountsGet method. - ApiAccountsMgmtV1AccountsGetFunc func(ctx context.Context) ApiApiAccountsMgmtV1AccountsGetRequest + ApiAccountsMgmtV1AccountsGetFunc func(ctx _context.Context) ApiApiAccountsMgmtV1AccountsGetRequest // ApiAccountsMgmtV1AccountsGetExecuteFunc mocks the ApiAccountsMgmtV1AccountsGetExecute method. - ApiAccountsMgmtV1AccountsGetExecuteFunc func(r ApiApiAccountsMgmtV1AccountsGetRequest) (AccountList, *http.Response, error) + ApiAccountsMgmtV1AccountsGetExecuteFunc func(r ApiApiAccountsMgmtV1AccountsGetRequest) (AccountList, *_nethttp.Response, error) // ApiAccountsMgmtV1AccountsIdGetFunc mocks the ApiAccountsMgmtV1AccountsIdGet method. - ApiAccountsMgmtV1AccountsIdGetFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1AccountsIdGetRequest + ApiAccountsMgmtV1AccountsIdGetFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdGetRequest // ApiAccountsMgmtV1AccountsIdGetExecuteFunc mocks the ApiAccountsMgmtV1AccountsIdGetExecute method. - ApiAccountsMgmtV1AccountsIdGetExecuteFunc func(r ApiApiAccountsMgmtV1AccountsIdGetRequest) (Account, *http.Response, error) + ApiAccountsMgmtV1AccountsIdGetExecuteFunc func(r ApiApiAccountsMgmtV1AccountsIdGetRequest) (Account, *_nethttp.Response, error) // ApiAccountsMgmtV1AccountsIdLabelsGetFunc mocks the ApiAccountsMgmtV1AccountsIdLabelsGet method. - ApiAccountsMgmtV1AccountsIdLabelsGetFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest + ApiAccountsMgmtV1AccountsIdLabelsGetFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest // ApiAccountsMgmtV1AccountsIdLabelsGetExecuteFunc mocks the ApiAccountsMgmtV1AccountsIdLabelsGetExecute method. - ApiAccountsMgmtV1AccountsIdLabelsGetExecuteFunc func(r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) (LabelList, *http.Response, error) + ApiAccountsMgmtV1AccountsIdLabelsGetExecuteFunc func(r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) // ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteFunc mocks the ApiAccountsMgmtV1AccountsIdLabelsKeyDelete method. - ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteFunc func(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest + ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteFunc func(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest // ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecuteFunc mocks the ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecute method. - ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecuteFunc func(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest) (*http.Response, error) + ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecuteFunc func(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) // ApiAccountsMgmtV1AccountsIdLabelsKeyGetFunc mocks the ApiAccountsMgmtV1AccountsIdLabelsKeyGet method. - ApiAccountsMgmtV1AccountsIdLabelsKeyGetFunc func(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest + ApiAccountsMgmtV1AccountsIdLabelsKeyGetFunc func(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest // ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecuteFunc mocks the ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecute method. - ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecuteFunc func(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest) (Label, *http.Response, error) + ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecuteFunc func(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) // ApiAccountsMgmtV1AccountsIdLabelsKeyPatchFunc mocks the ApiAccountsMgmtV1AccountsIdLabelsKeyPatch method. - ApiAccountsMgmtV1AccountsIdLabelsKeyPatchFunc func(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest + ApiAccountsMgmtV1AccountsIdLabelsKeyPatchFunc func(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest // ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecuteFunc mocks the ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecute method. - ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecuteFunc func(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest) (Label, *http.Response, error) + ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecuteFunc func(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) // ApiAccountsMgmtV1AccountsIdLabelsPostFunc mocks the ApiAccountsMgmtV1AccountsIdLabelsPost method. - ApiAccountsMgmtV1AccountsIdLabelsPostFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest + ApiAccountsMgmtV1AccountsIdLabelsPostFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest // ApiAccountsMgmtV1AccountsIdLabelsPostExecuteFunc mocks the ApiAccountsMgmtV1AccountsIdLabelsPostExecute method. - ApiAccountsMgmtV1AccountsIdLabelsPostExecuteFunc func(r ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest) (Label, *http.Response, error) + ApiAccountsMgmtV1AccountsIdLabelsPostExecuteFunc func(r ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest) (Label, *_nethttp.Response, error) // ApiAccountsMgmtV1AccountsIdPatchFunc mocks the ApiAccountsMgmtV1AccountsIdPatch method. - ApiAccountsMgmtV1AccountsIdPatchFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1AccountsIdPatchRequest + ApiAccountsMgmtV1AccountsIdPatchFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdPatchRequest // ApiAccountsMgmtV1AccountsIdPatchExecuteFunc mocks the ApiAccountsMgmtV1AccountsIdPatchExecute method. - ApiAccountsMgmtV1AccountsIdPatchExecuteFunc func(r ApiApiAccountsMgmtV1AccountsIdPatchRequest) (Account, *http.Response, error) + ApiAccountsMgmtV1AccountsIdPatchExecuteFunc func(r ApiApiAccountsMgmtV1AccountsIdPatchRequest) (Account, *_nethttp.Response, error) // ApiAccountsMgmtV1AccountsPostFunc mocks the ApiAccountsMgmtV1AccountsPost method. - ApiAccountsMgmtV1AccountsPostFunc func(ctx context.Context) ApiApiAccountsMgmtV1AccountsPostRequest + ApiAccountsMgmtV1AccountsPostFunc func(ctx _context.Context) ApiApiAccountsMgmtV1AccountsPostRequest // ApiAccountsMgmtV1AccountsPostExecuteFunc mocks the ApiAccountsMgmtV1AccountsPostExecute method. - ApiAccountsMgmtV1AccountsPostExecuteFunc func(r ApiApiAccountsMgmtV1AccountsPostRequest) (Account, *http.Response, error) + ApiAccountsMgmtV1AccountsPostExecuteFunc func(r ApiApiAccountsMgmtV1AccountsPostRequest) (Account, *_nethttp.Response, error) // ApiAccountsMgmtV1ClusterAuthorizationsPostFunc mocks the ApiAccountsMgmtV1ClusterAuthorizationsPost method. - ApiAccountsMgmtV1ClusterAuthorizationsPostFunc func(ctx context.Context) ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest + ApiAccountsMgmtV1ClusterAuthorizationsPostFunc func(ctx _context.Context) ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest // ApiAccountsMgmtV1ClusterAuthorizationsPostExecuteFunc mocks the ApiAccountsMgmtV1ClusterAuthorizationsPostExecute method. - ApiAccountsMgmtV1ClusterAuthorizationsPostExecuteFunc func(r ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest) (ClusterAuthorizationResponse, *http.Response, error) + ApiAccountsMgmtV1ClusterAuthorizationsPostExecuteFunc func(r ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest) (ClusterAuthorizationResponse, *_nethttp.Response, error) // ApiAccountsMgmtV1ClusterRegistrationsPostFunc mocks the ApiAccountsMgmtV1ClusterRegistrationsPost method. - ApiAccountsMgmtV1ClusterRegistrationsPostFunc func(ctx context.Context) ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest + ApiAccountsMgmtV1ClusterRegistrationsPostFunc func(ctx _context.Context) ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest // ApiAccountsMgmtV1ClusterRegistrationsPostExecuteFunc mocks the ApiAccountsMgmtV1ClusterRegistrationsPostExecute method. - ApiAccountsMgmtV1ClusterRegistrationsPostExecuteFunc func(r ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest) (ClusterRegistrationResponse, *http.Response, error) + ApiAccountsMgmtV1ClusterRegistrationsPostExecuteFunc func(r ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest) (ClusterRegistrationResponse, *_nethttp.Response, error) // ApiAccountsMgmtV1CurrentAccountGetFunc mocks the ApiAccountsMgmtV1CurrentAccountGet method. - ApiAccountsMgmtV1CurrentAccountGetFunc func(ctx context.Context) ApiApiAccountsMgmtV1CurrentAccountGetRequest + ApiAccountsMgmtV1CurrentAccountGetFunc func(ctx _context.Context) ApiApiAccountsMgmtV1CurrentAccountGetRequest // ApiAccountsMgmtV1CurrentAccountGetExecuteFunc mocks the ApiAccountsMgmtV1CurrentAccountGetExecute method. - ApiAccountsMgmtV1CurrentAccountGetExecuteFunc func(r ApiApiAccountsMgmtV1CurrentAccountGetRequest) (Account, *http.Response, error) + ApiAccountsMgmtV1CurrentAccountGetExecuteFunc func(r ApiApiAccountsMgmtV1CurrentAccountGetRequest) (Account, *_nethttp.Response, error) // ApiAccountsMgmtV1ErrorsGetFunc mocks the ApiAccountsMgmtV1ErrorsGet method. - ApiAccountsMgmtV1ErrorsGetFunc func(ctx context.Context) ApiApiAccountsMgmtV1ErrorsGetRequest + ApiAccountsMgmtV1ErrorsGetFunc func(ctx _context.Context) ApiApiAccountsMgmtV1ErrorsGetRequest // ApiAccountsMgmtV1ErrorsGetExecuteFunc mocks the ApiAccountsMgmtV1ErrorsGetExecute method. - ApiAccountsMgmtV1ErrorsGetExecuteFunc func(r ApiApiAccountsMgmtV1ErrorsGetRequest) (ErrorList, *http.Response, error) + ApiAccountsMgmtV1ErrorsGetExecuteFunc func(r ApiApiAccountsMgmtV1ErrorsGetRequest) (ErrorList, *_nethttp.Response, error) // ApiAccountsMgmtV1ErrorsIdGetFunc mocks the ApiAccountsMgmtV1ErrorsIdGet method. - ApiAccountsMgmtV1ErrorsIdGetFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1ErrorsIdGetRequest + ApiAccountsMgmtV1ErrorsIdGetFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1ErrorsIdGetRequest // ApiAccountsMgmtV1ErrorsIdGetExecuteFunc mocks the ApiAccountsMgmtV1ErrorsIdGetExecute method. - ApiAccountsMgmtV1ErrorsIdGetExecuteFunc func(r ApiApiAccountsMgmtV1ErrorsIdGetRequest) (Error, *http.Response, error) + ApiAccountsMgmtV1ErrorsIdGetExecuteFunc func(r ApiApiAccountsMgmtV1ErrorsIdGetRequest) (Error, *_nethttp.Response, error) // ApiAccountsMgmtV1FeatureTogglesIdQueryPostFunc mocks the ApiAccountsMgmtV1FeatureTogglesIdQueryPost method. - ApiAccountsMgmtV1FeatureTogglesIdQueryPostFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest + ApiAccountsMgmtV1FeatureTogglesIdQueryPostFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest // ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecuteFunc mocks the ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecute method. - ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecuteFunc func(r ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest) (FeatureToggle, *http.Response, error) + ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecuteFunc func(r ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest) (FeatureToggle, *_nethttp.Response, error) // ApiAccountsMgmtV1LabelsGetFunc mocks the ApiAccountsMgmtV1LabelsGet method. - ApiAccountsMgmtV1LabelsGetFunc func(ctx context.Context) ApiApiAccountsMgmtV1LabelsGetRequest + ApiAccountsMgmtV1LabelsGetFunc func(ctx _context.Context) ApiApiAccountsMgmtV1LabelsGetRequest // ApiAccountsMgmtV1LabelsGetExecuteFunc mocks the ApiAccountsMgmtV1LabelsGetExecute method. - ApiAccountsMgmtV1LabelsGetExecuteFunc func(r ApiApiAccountsMgmtV1LabelsGetRequest) (LabelList, *http.Response, error) + ApiAccountsMgmtV1LabelsGetExecuteFunc func(r ApiApiAccountsMgmtV1LabelsGetRequest) (LabelList, *_nethttp.Response, error) // ApiAccountsMgmtV1MetricsGetFunc mocks the ApiAccountsMgmtV1MetricsGet method. - ApiAccountsMgmtV1MetricsGetFunc func(ctx context.Context) ApiApiAccountsMgmtV1MetricsGetRequest + ApiAccountsMgmtV1MetricsGetFunc func(ctx _context.Context) ApiApiAccountsMgmtV1MetricsGetRequest // ApiAccountsMgmtV1MetricsGetExecuteFunc mocks the ApiAccountsMgmtV1MetricsGetExecute method. - ApiAccountsMgmtV1MetricsGetExecuteFunc func(r ApiApiAccountsMgmtV1MetricsGetRequest) (MetricsList, *http.Response, error) + ApiAccountsMgmtV1MetricsGetExecuteFunc func(r ApiApiAccountsMgmtV1MetricsGetRequest) (MetricsList, *_nethttp.Response, error) // ApiAccountsMgmtV1NotifyPostFunc mocks the ApiAccountsMgmtV1NotifyPost method. - ApiAccountsMgmtV1NotifyPostFunc func(ctx context.Context) ApiApiAccountsMgmtV1NotifyPostRequest + ApiAccountsMgmtV1NotifyPostFunc func(ctx _context.Context) ApiApiAccountsMgmtV1NotifyPostRequest // ApiAccountsMgmtV1NotifyPostExecuteFunc mocks the ApiAccountsMgmtV1NotifyPostExecute method. - ApiAccountsMgmtV1NotifyPostExecuteFunc func(r ApiApiAccountsMgmtV1NotifyPostRequest) (*http.Response, error) + ApiAccountsMgmtV1NotifyPostExecuteFunc func(r ApiApiAccountsMgmtV1NotifyPostRequest) (*_nethttp.Response, error) // ApiAccountsMgmtV1OrganizationsGetFunc mocks the ApiAccountsMgmtV1OrganizationsGet method. - ApiAccountsMgmtV1OrganizationsGetFunc func(ctx context.Context) ApiApiAccountsMgmtV1OrganizationsGetRequest + ApiAccountsMgmtV1OrganizationsGetFunc func(ctx _context.Context) ApiApiAccountsMgmtV1OrganizationsGetRequest // ApiAccountsMgmtV1OrganizationsGetExecuteFunc mocks the ApiAccountsMgmtV1OrganizationsGetExecute method. - ApiAccountsMgmtV1OrganizationsGetExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsGetRequest) (OrganizationList, *http.Response, error) + ApiAccountsMgmtV1OrganizationsGetExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsGetRequest) (OrganizationList, *_nethttp.Response, error) // ApiAccountsMgmtV1OrganizationsIdGetFunc mocks the ApiAccountsMgmtV1OrganizationsIdGet method. - ApiAccountsMgmtV1OrganizationsIdGetFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdGetRequest + ApiAccountsMgmtV1OrganizationsIdGetFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdGetRequest // ApiAccountsMgmtV1OrganizationsIdGetExecuteFunc mocks the ApiAccountsMgmtV1OrganizationsIdGetExecute method. - ApiAccountsMgmtV1OrganizationsIdGetExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsIdGetRequest) (Organization, *http.Response, error) + ApiAccountsMgmtV1OrganizationsIdGetExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsIdGetRequest) (Organization, *_nethttp.Response, error) // ApiAccountsMgmtV1OrganizationsIdLabelsGetFunc mocks the ApiAccountsMgmtV1OrganizationsIdLabelsGet method. - ApiAccountsMgmtV1OrganizationsIdLabelsGetFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest + ApiAccountsMgmtV1OrganizationsIdLabelsGetFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest // ApiAccountsMgmtV1OrganizationsIdLabelsGetExecuteFunc mocks the ApiAccountsMgmtV1OrganizationsIdLabelsGetExecute method. - ApiAccountsMgmtV1OrganizationsIdLabelsGetExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) (LabelList, *http.Response, error) + ApiAccountsMgmtV1OrganizationsIdLabelsGetExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) // ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteFunc mocks the ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete method. - ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteFunc func(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest + ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteFunc func(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest // ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecuteFunc mocks the ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecute method. - ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest) (*http.Response, error) + ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) // ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetFunc mocks the ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet method. - ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetFunc func(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest + ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetFunc func(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest // ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecuteFunc mocks the ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecute method. - ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest) (Label, *http.Response, error) + ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) // ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchFunc mocks the ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch method. - ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchFunc func(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest + ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchFunc func(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest // ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecuteFunc mocks the ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecute method. - ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest) (Label, *http.Response, error) + ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) // ApiAccountsMgmtV1OrganizationsIdLabelsPostFunc mocks the ApiAccountsMgmtV1OrganizationsIdLabelsPost method. - ApiAccountsMgmtV1OrganizationsIdLabelsPostFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest + ApiAccountsMgmtV1OrganizationsIdLabelsPostFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest // ApiAccountsMgmtV1OrganizationsIdLabelsPostExecuteFunc mocks the ApiAccountsMgmtV1OrganizationsIdLabelsPostExecute method. - ApiAccountsMgmtV1OrganizationsIdLabelsPostExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest) (Label, *http.Response, error) + ApiAccountsMgmtV1OrganizationsIdLabelsPostExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest) (Label, *_nethttp.Response, error) // ApiAccountsMgmtV1OrganizationsIdPatchFunc mocks the ApiAccountsMgmtV1OrganizationsIdPatch method. - ApiAccountsMgmtV1OrganizationsIdPatchFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdPatchRequest + ApiAccountsMgmtV1OrganizationsIdPatchFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdPatchRequest // ApiAccountsMgmtV1OrganizationsIdPatchExecuteFunc mocks the ApiAccountsMgmtV1OrganizationsIdPatchExecute method. - ApiAccountsMgmtV1OrganizationsIdPatchExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsIdPatchRequest) (Organization, *http.Response, error) + ApiAccountsMgmtV1OrganizationsIdPatchExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsIdPatchRequest) (Organization, *_nethttp.Response, error) // ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetFunc mocks the ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet method. - ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest + ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest // ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecuteFunc mocks the ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecute method. - ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest) (Summary, *http.Response, error) + ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest) (Summary, *_nethttp.Response, error) // ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetFunc mocks the ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet method. - ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetFunc func(ctx context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest + ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetFunc func(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest // ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecuteFunc mocks the ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecute method. - ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) (QuotaCostList, *http.Response, error) + ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) (QuotaCostList, *_nethttp.Response, error) // ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetFunc mocks the ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet method. - ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetFunc func(ctx context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest + ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetFunc func(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest // ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecuteFunc mocks the ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecute method. - ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest) (QuotaSummaryList, *http.Response, error) + ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest) (QuotaSummaryList, *_nethttp.Response, error) // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetFunc mocks the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet method. - ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetFunc func(ctx context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetFunc func(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecuteFunc mocks the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecute method. - ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) (ResourceQuotaList, *http.Response, error) + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) (ResourceQuotaList, *_nethttp.Response, error) // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostFunc mocks the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost method. - ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostFunc func(ctx context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostFunc func(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecuteFunc mocks the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecute method. - ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest) (ResourceQuota, *http.Response, error) + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest) (ResourceQuota, *_nethttp.Response, error) // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteFunc mocks the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete method. - ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteFunc func(ctx context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteFunc func(ctx _context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecuteFunc mocks the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecute method. - ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest) (*http.Response, error) + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest) (*_nethttp.Response, error) // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetFunc mocks the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet method. - ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetFunc func(ctx context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetFunc func(ctx _context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecuteFunc mocks the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecute method. - ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest) (ResourceQuota, *http.Response, error) + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest) (ResourceQuota, *_nethttp.Response, error) // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchFunc mocks the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch method. - ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchFunc func(ctx context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchFunc func(ctx _context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecuteFunc mocks the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecute method. - ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest) (ResourceQuota, *http.Response, error) + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest) (ResourceQuota, *_nethttp.Response, error) // ApiAccountsMgmtV1OrganizationsPostFunc mocks the ApiAccountsMgmtV1OrganizationsPost method. - ApiAccountsMgmtV1OrganizationsPostFunc func(ctx context.Context) ApiApiAccountsMgmtV1OrganizationsPostRequest + ApiAccountsMgmtV1OrganizationsPostFunc func(ctx _context.Context) ApiApiAccountsMgmtV1OrganizationsPostRequest // ApiAccountsMgmtV1OrganizationsPostExecuteFunc mocks the ApiAccountsMgmtV1OrganizationsPostExecute method. - ApiAccountsMgmtV1OrganizationsPostExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsPostRequest) (Organization, *http.Response, error) + ApiAccountsMgmtV1OrganizationsPostExecuteFunc func(r ApiApiAccountsMgmtV1OrganizationsPostRequest) (Organization, *_nethttp.Response, error) // ApiAccountsMgmtV1PlansGetFunc mocks the ApiAccountsMgmtV1PlansGet method. - ApiAccountsMgmtV1PlansGetFunc func(ctx context.Context) ApiApiAccountsMgmtV1PlansGetRequest + ApiAccountsMgmtV1PlansGetFunc func(ctx _context.Context) ApiApiAccountsMgmtV1PlansGetRequest // ApiAccountsMgmtV1PlansGetExecuteFunc mocks the ApiAccountsMgmtV1PlansGetExecute method. - ApiAccountsMgmtV1PlansGetExecuteFunc func(r ApiApiAccountsMgmtV1PlansGetRequest) (PlanList, *http.Response, error) + ApiAccountsMgmtV1PlansGetExecuteFunc func(r ApiApiAccountsMgmtV1PlansGetRequest) (PlanList, *_nethttp.Response, error) // ApiAccountsMgmtV1PlansIdGetFunc mocks the ApiAccountsMgmtV1PlansIdGet method. - ApiAccountsMgmtV1PlansIdGetFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1PlansIdGetRequest + ApiAccountsMgmtV1PlansIdGetFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1PlansIdGetRequest // ApiAccountsMgmtV1PlansIdGetExecuteFunc mocks the ApiAccountsMgmtV1PlansIdGetExecute method. - ApiAccountsMgmtV1PlansIdGetExecuteFunc func(r ApiApiAccountsMgmtV1PlansIdGetRequest) (Plan, *http.Response, error) + ApiAccountsMgmtV1PlansIdGetExecuteFunc func(r ApiApiAccountsMgmtV1PlansIdGetRequest) (Plan, *_nethttp.Response, error) // ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteFunc mocks the ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete method. - ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteFunc func(ctx context.Context, externalResourceId string) ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest + ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteFunc func(ctx _context.Context, externalResourceId string) ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest // ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecuteFunc mocks the ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecute method. - ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecuteFunc func(r ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest) (*http.Response, error) + ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecuteFunc func(r ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest) (*_nethttp.Response, error) // ApiAccountsMgmtV1PullSecretsPostFunc mocks the ApiAccountsMgmtV1PullSecretsPost method. - ApiAccountsMgmtV1PullSecretsPostFunc func(ctx context.Context) ApiApiAccountsMgmtV1PullSecretsPostRequest + ApiAccountsMgmtV1PullSecretsPostFunc func(ctx _context.Context) ApiApiAccountsMgmtV1PullSecretsPostRequest // ApiAccountsMgmtV1PullSecretsPostExecuteFunc mocks the ApiAccountsMgmtV1PullSecretsPostExecute method. - ApiAccountsMgmtV1PullSecretsPostExecuteFunc func(r ApiApiAccountsMgmtV1PullSecretsPostRequest) (AccessTokenCfg, *http.Response, error) + ApiAccountsMgmtV1PullSecretsPostExecuteFunc func(r ApiApiAccountsMgmtV1PullSecretsPostRequest) (AccessTokenCfg, *_nethttp.Response, error) // ApiAccountsMgmtV1RegistriesGetFunc mocks the ApiAccountsMgmtV1RegistriesGet method. - ApiAccountsMgmtV1RegistriesGetFunc func(ctx context.Context) ApiApiAccountsMgmtV1RegistriesGetRequest + ApiAccountsMgmtV1RegistriesGetFunc func(ctx _context.Context) ApiApiAccountsMgmtV1RegistriesGetRequest // ApiAccountsMgmtV1RegistriesGetExecuteFunc mocks the ApiAccountsMgmtV1RegistriesGetExecute method. - ApiAccountsMgmtV1RegistriesGetExecuteFunc func(r ApiApiAccountsMgmtV1RegistriesGetRequest) (RegistryList, *http.Response, error) + ApiAccountsMgmtV1RegistriesGetExecuteFunc func(r ApiApiAccountsMgmtV1RegistriesGetRequest) (RegistryList, *_nethttp.Response, error) // ApiAccountsMgmtV1RegistriesIdGetFunc mocks the ApiAccountsMgmtV1RegistriesIdGet method. - ApiAccountsMgmtV1RegistriesIdGetFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1RegistriesIdGetRequest + ApiAccountsMgmtV1RegistriesIdGetFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistriesIdGetRequest // ApiAccountsMgmtV1RegistriesIdGetExecuteFunc mocks the ApiAccountsMgmtV1RegistriesIdGetExecute method. - ApiAccountsMgmtV1RegistriesIdGetExecuteFunc func(r ApiApiAccountsMgmtV1RegistriesIdGetRequest) (Registry, *http.Response, error) + ApiAccountsMgmtV1RegistriesIdGetExecuteFunc func(r ApiApiAccountsMgmtV1RegistriesIdGetRequest) (Registry, *_nethttp.Response, error) // ApiAccountsMgmtV1RegistryCredentialsGetFunc mocks the ApiAccountsMgmtV1RegistryCredentialsGet method. - ApiAccountsMgmtV1RegistryCredentialsGetFunc func(ctx context.Context) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest + ApiAccountsMgmtV1RegistryCredentialsGetFunc func(ctx _context.Context) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest // ApiAccountsMgmtV1RegistryCredentialsGetExecuteFunc mocks the ApiAccountsMgmtV1RegistryCredentialsGetExecute method. - ApiAccountsMgmtV1RegistryCredentialsGetExecuteFunc func(r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) (RegistryCredentialList, *http.Response, error) + ApiAccountsMgmtV1RegistryCredentialsGetExecuteFunc func(r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) (RegistryCredentialList, *_nethttp.Response, error) // ApiAccountsMgmtV1RegistryCredentialsIdDeleteFunc mocks the ApiAccountsMgmtV1RegistryCredentialsIdDelete method. - ApiAccountsMgmtV1RegistryCredentialsIdDeleteFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest + ApiAccountsMgmtV1RegistryCredentialsIdDeleteFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest // ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecuteFunc mocks the ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecute method. - ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecuteFunc func(r ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest) (*http.Response, error) + ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecuteFunc func(r ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest) (*_nethttp.Response, error) // ApiAccountsMgmtV1RegistryCredentialsIdGetFunc mocks the ApiAccountsMgmtV1RegistryCredentialsIdGet method. - ApiAccountsMgmtV1RegistryCredentialsIdGetFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest + ApiAccountsMgmtV1RegistryCredentialsIdGetFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest // ApiAccountsMgmtV1RegistryCredentialsIdGetExecuteFunc mocks the ApiAccountsMgmtV1RegistryCredentialsIdGetExecute method. - ApiAccountsMgmtV1RegistryCredentialsIdGetExecuteFunc func(r ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest) (RegistryCredential, *http.Response, error) + ApiAccountsMgmtV1RegistryCredentialsIdGetExecuteFunc func(r ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest) (RegistryCredential, *_nethttp.Response, error) // ApiAccountsMgmtV1RegistryCredentialsIdPatchFunc mocks the ApiAccountsMgmtV1RegistryCredentialsIdPatch method. - ApiAccountsMgmtV1RegistryCredentialsIdPatchFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest + ApiAccountsMgmtV1RegistryCredentialsIdPatchFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest // ApiAccountsMgmtV1RegistryCredentialsIdPatchExecuteFunc mocks the ApiAccountsMgmtV1RegistryCredentialsIdPatchExecute method. - ApiAccountsMgmtV1RegistryCredentialsIdPatchExecuteFunc func(r ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest) (RegistryCredential, *http.Response, error) + ApiAccountsMgmtV1RegistryCredentialsIdPatchExecuteFunc func(r ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest) (RegistryCredential, *_nethttp.Response, error) // ApiAccountsMgmtV1RegistryCredentialsPostFunc mocks the ApiAccountsMgmtV1RegistryCredentialsPost method. - ApiAccountsMgmtV1RegistryCredentialsPostFunc func(ctx context.Context) ApiApiAccountsMgmtV1RegistryCredentialsPostRequest + ApiAccountsMgmtV1RegistryCredentialsPostFunc func(ctx _context.Context) ApiApiAccountsMgmtV1RegistryCredentialsPostRequest // ApiAccountsMgmtV1RegistryCredentialsPostExecuteFunc mocks the ApiAccountsMgmtV1RegistryCredentialsPostExecute method. - ApiAccountsMgmtV1RegistryCredentialsPostExecuteFunc func(r ApiApiAccountsMgmtV1RegistryCredentialsPostRequest) (RegistryCredential, *http.Response, error) + ApiAccountsMgmtV1RegistryCredentialsPostExecuteFunc func(r ApiApiAccountsMgmtV1RegistryCredentialsPostRequest) (RegistryCredential, *_nethttp.Response, error) // ApiAccountsMgmtV1ReservedResourcesGetFunc mocks the ApiAccountsMgmtV1ReservedResourcesGet method. - ApiAccountsMgmtV1ReservedResourcesGetFunc func(ctx context.Context) ApiApiAccountsMgmtV1ReservedResourcesGetRequest + ApiAccountsMgmtV1ReservedResourcesGetFunc func(ctx _context.Context) ApiApiAccountsMgmtV1ReservedResourcesGetRequest // ApiAccountsMgmtV1ReservedResourcesGetExecuteFunc mocks the ApiAccountsMgmtV1ReservedResourcesGetExecute method. - ApiAccountsMgmtV1ReservedResourcesGetExecuteFunc func(r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) (ReservedResourceList, *http.Response, error) + ApiAccountsMgmtV1ReservedResourcesGetExecuteFunc func(r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) (ReservedResourceList, *_nethttp.Response, error) // ApiAccountsMgmtV1ResourceQuotaGetFunc mocks the ApiAccountsMgmtV1ResourceQuotaGet method. - ApiAccountsMgmtV1ResourceQuotaGetFunc func(ctx context.Context) ApiApiAccountsMgmtV1ResourceQuotaGetRequest + ApiAccountsMgmtV1ResourceQuotaGetFunc func(ctx _context.Context) ApiApiAccountsMgmtV1ResourceQuotaGetRequest // ApiAccountsMgmtV1ResourceQuotaGetExecuteFunc mocks the ApiAccountsMgmtV1ResourceQuotaGetExecute method. - ApiAccountsMgmtV1ResourceQuotaGetExecuteFunc func(r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) (ResourceQuotaList, *http.Response, error) + ApiAccountsMgmtV1ResourceQuotaGetExecuteFunc func(r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) (ResourceQuotaList, *_nethttp.Response, error) // ApiAccountsMgmtV1RoleBindingsGetFunc mocks the ApiAccountsMgmtV1RoleBindingsGet method. - ApiAccountsMgmtV1RoleBindingsGetFunc func(ctx context.Context) ApiApiAccountsMgmtV1RoleBindingsGetRequest + ApiAccountsMgmtV1RoleBindingsGetFunc func(ctx _context.Context) ApiApiAccountsMgmtV1RoleBindingsGetRequest // ApiAccountsMgmtV1RoleBindingsGetExecuteFunc mocks the ApiAccountsMgmtV1RoleBindingsGetExecute method. - ApiAccountsMgmtV1RoleBindingsGetExecuteFunc func(r ApiApiAccountsMgmtV1RoleBindingsGetRequest) (RoleBindingList, *http.Response, error) + ApiAccountsMgmtV1RoleBindingsGetExecuteFunc func(r ApiApiAccountsMgmtV1RoleBindingsGetRequest) (RoleBindingList, *_nethttp.Response, error) // ApiAccountsMgmtV1RoleBindingsIdDeleteFunc mocks the ApiAccountsMgmtV1RoleBindingsIdDelete method. - ApiAccountsMgmtV1RoleBindingsIdDeleteFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest + ApiAccountsMgmtV1RoleBindingsIdDeleteFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest // ApiAccountsMgmtV1RoleBindingsIdDeleteExecuteFunc mocks the ApiAccountsMgmtV1RoleBindingsIdDeleteExecute method. - ApiAccountsMgmtV1RoleBindingsIdDeleteExecuteFunc func(r ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest) (*http.Response, error) + ApiAccountsMgmtV1RoleBindingsIdDeleteExecuteFunc func(r ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest) (*_nethttp.Response, error) // ApiAccountsMgmtV1RoleBindingsIdGetFunc mocks the ApiAccountsMgmtV1RoleBindingsIdGet method. - ApiAccountsMgmtV1RoleBindingsIdGetFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdGetRequest + ApiAccountsMgmtV1RoleBindingsIdGetFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdGetRequest // ApiAccountsMgmtV1RoleBindingsIdGetExecuteFunc mocks the ApiAccountsMgmtV1RoleBindingsIdGetExecute method. - ApiAccountsMgmtV1RoleBindingsIdGetExecuteFunc func(r ApiApiAccountsMgmtV1RoleBindingsIdGetRequest) (RoleBinding, *http.Response, error) + ApiAccountsMgmtV1RoleBindingsIdGetExecuteFunc func(r ApiApiAccountsMgmtV1RoleBindingsIdGetRequest) (RoleBinding, *_nethttp.Response, error) // ApiAccountsMgmtV1RoleBindingsIdPatchFunc mocks the ApiAccountsMgmtV1RoleBindingsIdPatch method. - ApiAccountsMgmtV1RoleBindingsIdPatchFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest + ApiAccountsMgmtV1RoleBindingsIdPatchFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest // ApiAccountsMgmtV1RoleBindingsIdPatchExecuteFunc mocks the ApiAccountsMgmtV1RoleBindingsIdPatchExecute method. - ApiAccountsMgmtV1RoleBindingsIdPatchExecuteFunc func(r ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest) (RoleBinding, *http.Response, error) + ApiAccountsMgmtV1RoleBindingsIdPatchExecuteFunc func(r ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest) (RoleBinding, *_nethttp.Response, error) // ApiAccountsMgmtV1RoleBindingsPostFunc mocks the ApiAccountsMgmtV1RoleBindingsPost method. - ApiAccountsMgmtV1RoleBindingsPostFunc func(ctx context.Context) ApiApiAccountsMgmtV1RoleBindingsPostRequest + ApiAccountsMgmtV1RoleBindingsPostFunc func(ctx _context.Context) ApiApiAccountsMgmtV1RoleBindingsPostRequest // ApiAccountsMgmtV1RoleBindingsPostExecuteFunc mocks the ApiAccountsMgmtV1RoleBindingsPostExecute method. - ApiAccountsMgmtV1RoleBindingsPostExecuteFunc func(r ApiApiAccountsMgmtV1RoleBindingsPostRequest) (RoleBinding, *http.Response, error) + ApiAccountsMgmtV1RoleBindingsPostExecuteFunc func(r ApiApiAccountsMgmtV1RoleBindingsPostRequest) (RoleBinding, *_nethttp.Response, error) // ApiAccountsMgmtV1RolesGetFunc mocks the ApiAccountsMgmtV1RolesGet method. - ApiAccountsMgmtV1RolesGetFunc func(ctx context.Context) ApiApiAccountsMgmtV1RolesGetRequest + ApiAccountsMgmtV1RolesGetFunc func(ctx _context.Context) ApiApiAccountsMgmtV1RolesGetRequest // ApiAccountsMgmtV1RolesGetExecuteFunc mocks the ApiAccountsMgmtV1RolesGetExecute method. - ApiAccountsMgmtV1RolesGetExecuteFunc func(r ApiApiAccountsMgmtV1RolesGetRequest) (RoleList, *http.Response, error) + ApiAccountsMgmtV1RolesGetExecuteFunc func(r ApiApiAccountsMgmtV1RolesGetRequest) (RoleList, *_nethttp.Response, error) // ApiAccountsMgmtV1RolesIdGetFunc mocks the ApiAccountsMgmtV1RolesIdGet method. - ApiAccountsMgmtV1RolesIdGetFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1RolesIdGetRequest + ApiAccountsMgmtV1RolesIdGetFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1RolesIdGetRequest // ApiAccountsMgmtV1RolesIdGetExecuteFunc mocks the ApiAccountsMgmtV1RolesIdGetExecute method. - ApiAccountsMgmtV1RolesIdGetExecuteFunc func(r ApiApiAccountsMgmtV1RolesIdGetRequest) (Role, *http.Response, error) + ApiAccountsMgmtV1RolesIdGetExecuteFunc func(r ApiApiAccountsMgmtV1RolesIdGetRequest) (Role, *_nethttp.Response, error) // ApiAccountsMgmtV1SkuRulesGetFunc mocks the ApiAccountsMgmtV1SkuRulesGet method. - ApiAccountsMgmtV1SkuRulesGetFunc func(ctx context.Context) ApiApiAccountsMgmtV1SkuRulesGetRequest + ApiAccountsMgmtV1SkuRulesGetFunc func(ctx _context.Context) ApiApiAccountsMgmtV1SkuRulesGetRequest // ApiAccountsMgmtV1SkuRulesGetExecuteFunc mocks the ApiAccountsMgmtV1SkuRulesGetExecute method. - ApiAccountsMgmtV1SkuRulesGetExecuteFunc func(r ApiApiAccountsMgmtV1SkuRulesGetRequest) (SkuRulesList, *http.Response, error) + ApiAccountsMgmtV1SkuRulesGetExecuteFunc func(r ApiApiAccountsMgmtV1SkuRulesGetRequest) (SkuRulesList, *_nethttp.Response, error) // ApiAccountsMgmtV1SkuRulesIdGetFunc mocks the ApiAccountsMgmtV1SkuRulesIdGet method. - ApiAccountsMgmtV1SkuRulesIdGetFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1SkuRulesIdGetRequest + ApiAccountsMgmtV1SkuRulesIdGetFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SkuRulesIdGetRequest // ApiAccountsMgmtV1SkuRulesIdGetExecuteFunc mocks the ApiAccountsMgmtV1SkuRulesIdGetExecute method. - ApiAccountsMgmtV1SkuRulesIdGetExecuteFunc func(r ApiApiAccountsMgmtV1SkuRulesIdGetRequest) (SkuRules, *http.Response, error) + ApiAccountsMgmtV1SkuRulesIdGetExecuteFunc func(r ApiApiAccountsMgmtV1SkuRulesIdGetRequest) (SkuRules, *_nethttp.Response, error) // ApiAccountsMgmtV1SkusGetFunc mocks the ApiAccountsMgmtV1SkusGet method. - ApiAccountsMgmtV1SkusGetFunc func(ctx context.Context) ApiApiAccountsMgmtV1SkusGetRequest + ApiAccountsMgmtV1SkusGetFunc func(ctx _context.Context) ApiApiAccountsMgmtV1SkusGetRequest // ApiAccountsMgmtV1SkusGetExecuteFunc mocks the ApiAccountsMgmtV1SkusGetExecute method. - ApiAccountsMgmtV1SkusGetExecuteFunc func(r ApiApiAccountsMgmtV1SkusGetRequest) (SkuList, *http.Response, error) + ApiAccountsMgmtV1SkusGetExecuteFunc func(r ApiApiAccountsMgmtV1SkusGetRequest) (SkuList, *_nethttp.Response, error) // ApiAccountsMgmtV1SkusIdGetFunc mocks the ApiAccountsMgmtV1SkusIdGet method. - ApiAccountsMgmtV1SkusIdGetFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1SkusIdGetRequest + ApiAccountsMgmtV1SkusIdGetFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SkusIdGetRequest // ApiAccountsMgmtV1SkusIdGetExecuteFunc mocks the ApiAccountsMgmtV1SkusIdGetExecute method. - ApiAccountsMgmtV1SkusIdGetExecuteFunc func(r ApiApiAccountsMgmtV1SkusIdGetRequest) (SKU, *http.Response, error) + ApiAccountsMgmtV1SkusIdGetExecuteFunc func(r ApiApiAccountsMgmtV1SkusIdGetRequest) (SKU, *_nethttp.Response, error) // ApiAccountsMgmtV1SubscriptionsGetFunc mocks the ApiAccountsMgmtV1SubscriptionsGet method. - ApiAccountsMgmtV1SubscriptionsGetFunc func(ctx context.Context) ApiApiAccountsMgmtV1SubscriptionsGetRequest + ApiAccountsMgmtV1SubscriptionsGetFunc func(ctx _context.Context) ApiApiAccountsMgmtV1SubscriptionsGetRequest // ApiAccountsMgmtV1SubscriptionsGetExecuteFunc mocks the ApiAccountsMgmtV1SubscriptionsGetExecute method. - ApiAccountsMgmtV1SubscriptionsGetExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsGetRequest) (SubscriptionList, *http.Response, error) + ApiAccountsMgmtV1SubscriptionsGetExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsGetRequest) (SubscriptionList, *_nethttp.Response, error) // ApiAccountsMgmtV1SubscriptionsIdDeleteFunc mocks the ApiAccountsMgmtV1SubscriptionsIdDelete method. - ApiAccountsMgmtV1SubscriptionsIdDeleteFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest + ApiAccountsMgmtV1SubscriptionsIdDeleteFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest // ApiAccountsMgmtV1SubscriptionsIdDeleteExecuteFunc mocks the ApiAccountsMgmtV1SubscriptionsIdDeleteExecute method. - ApiAccountsMgmtV1SubscriptionsIdDeleteExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest) (*http.Response, error) + ApiAccountsMgmtV1SubscriptionsIdDeleteExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest) (*_nethttp.Response, error) // ApiAccountsMgmtV1SubscriptionsIdGetFunc mocks the ApiAccountsMgmtV1SubscriptionsIdGet method. - ApiAccountsMgmtV1SubscriptionsIdGetFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest + ApiAccountsMgmtV1SubscriptionsIdGetFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest // ApiAccountsMgmtV1SubscriptionsIdGetExecuteFunc mocks the ApiAccountsMgmtV1SubscriptionsIdGetExecute method. - ApiAccountsMgmtV1SubscriptionsIdGetExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) (Subscription, *http.Response, error) + ApiAccountsMgmtV1SubscriptionsIdGetExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) (Subscription, *_nethttp.Response, error) // ApiAccountsMgmtV1SubscriptionsIdLabelsGetFunc mocks the ApiAccountsMgmtV1SubscriptionsIdLabelsGet method. - ApiAccountsMgmtV1SubscriptionsIdLabelsGetFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest + ApiAccountsMgmtV1SubscriptionsIdLabelsGetFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest // ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecuteFunc mocks the ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecute method. - ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) (LabelList, *http.Response, error) + ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) // ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteFunc mocks the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete method. - ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteFunc func(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest + ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteFunc func(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest // ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecuteFunc mocks the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecute method. - ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest) (*http.Response, error) + ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) // ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetFunc mocks the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet method. - ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetFunc func(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest + ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetFunc func(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest // ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecuteFunc mocks the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecute method. - ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest) (Label, *http.Response, error) + ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) // ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchFunc mocks the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch method. - ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchFunc func(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest + ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchFunc func(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest // ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecuteFunc mocks the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecute method. - ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest) (Label, *http.Response, error) + ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) // ApiAccountsMgmtV1SubscriptionsIdLabelsPostFunc mocks the ApiAccountsMgmtV1SubscriptionsIdLabelsPost method. - ApiAccountsMgmtV1SubscriptionsIdLabelsPostFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest + ApiAccountsMgmtV1SubscriptionsIdLabelsPostFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest // ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecuteFunc mocks the ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecute method. - ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest) (Label, *http.Response, error) + ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest) (Label, *_nethttp.Response, error) // ApiAccountsMgmtV1SubscriptionsIdNotifyPostFunc mocks the ApiAccountsMgmtV1SubscriptionsIdNotifyPost method. - ApiAccountsMgmtV1SubscriptionsIdNotifyPostFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest + ApiAccountsMgmtV1SubscriptionsIdNotifyPostFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest // ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecuteFunc mocks the ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecute method. - ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest) (*http.Response, error) + ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest) (*_nethttp.Response, error) // ApiAccountsMgmtV1SubscriptionsIdPatchFunc mocks the ApiAccountsMgmtV1SubscriptionsIdPatch method. - ApiAccountsMgmtV1SubscriptionsIdPatchFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest + ApiAccountsMgmtV1SubscriptionsIdPatchFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest // ApiAccountsMgmtV1SubscriptionsIdPatchExecuteFunc mocks the ApiAccountsMgmtV1SubscriptionsIdPatchExecute method. - ApiAccountsMgmtV1SubscriptionsIdPatchExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest) (Subscription, *http.Response, error) + ApiAccountsMgmtV1SubscriptionsIdPatchExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest) (Subscription, *_nethttp.Response, error) // ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetFunc mocks the ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet method. - ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest + ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest // ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecuteFunc mocks the ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecute method. - ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) (ReservedResourceList, *http.Response, error) + ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) (ReservedResourceList, *_nethttp.Response, error) // ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetFunc mocks the ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet method. - ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetFunc func(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest + ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetFunc func(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest // ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecuteFunc mocks the ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecute method. - ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest) (*http.Response, error) + ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest) (*_nethttp.Response, error) // ApiAccountsMgmtV1SubscriptionsPostFunc mocks the ApiAccountsMgmtV1SubscriptionsPost method. - ApiAccountsMgmtV1SubscriptionsPostFunc func(ctx context.Context) ApiApiAccountsMgmtV1SubscriptionsPostRequest + ApiAccountsMgmtV1SubscriptionsPostFunc func(ctx _context.Context) ApiApiAccountsMgmtV1SubscriptionsPostRequest // ApiAccountsMgmtV1SubscriptionsPostExecuteFunc mocks the ApiAccountsMgmtV1SubscriptionsPostExecute method. - ApiAccountsMgmtV1SubscriptionsPostExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsPostRequest) (Subscription, *http.Response, error) + ApiAccountsMgmtV1SubscriptionsPostExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsPostRequest) (Subscription, *_nethttp.Response, error) // ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteFunc mocks the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete method. - ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteFunc func(ctx context.Context, subId string, accountId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest + ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteFunc func(ctx _context.Context, subId string, accountId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest // ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecuteFunc mocks the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecute method. - ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest) (*http.Response, error) + ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest) (*_nethttp.Response, error) // ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetFunc mocks the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet method. - ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetFunc func(ctx context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest + ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetFunc func(ctx _context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest // ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecuteFunc mocks the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecute method. - ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) (AccountList, *http.Response, error) + ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) (AccountList, *_nethttp.Response, error) // ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostFunc mocks the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost method. - ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostFunc func(ctx context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest + ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostFunc func(ctx _context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest // ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecuteFunc mocks the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecute method. - ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest) (Account, *http.Response, error) + ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest) (Account, *_nethttp.Response, error) // ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetFunc mocks the ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet method. - ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetFunc func(ctx context.Context, subId string, reservedResourceId string) ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest + ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetFunc func(ctx _context.Context, subId string, reservedResourceId string) ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest // ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecuteFunc mocks the ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecute method. - ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest) (ReservedResource, *http.Response, error) + ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecuteFunc func(r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest) (ReservedResource, *_nethttp.Response, error) // ApiAccountsMgmtV1SupportCasesCaseIdDeleteFunc mocks the ApiAccountsMgmtV1SupportCasesCaseIdDelete method. - ApiAccountsMgmtV1SupportCasesCaseIdDeleteFunc func(ctx context.Context, caseId string) ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest + ApiAccountsMgmtV1SupportCasesCaseIdDeleteFunc func(ctx _context.Context, caseId string) ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest // ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecuteFunc mocks the ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecute method. - ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecuteFunc func(r ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest) (*http.Response, error) + ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecuteFunc func(r ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest) (*_nethttp.Response, error) // ApiAccountsMgmtV1SupportCasesPostFunc mocks the ApiAccountsMgmtV1SupportCasesPost method. - ApiAccountsMgmtV1SupportCasesPostFunc func(ctx context.Context) ApiApiAccountsMgmtV1SupportCasesPostRequest + ApiAccountsMgmtV1SupportCasesPostFunc func(ctx _context.Context) ApiApiAccountsMgmtV1SupportCasesPostRequest // ApiAccountsMgmtV1SupportCasesPostExecuteFunc mocks the ApiAccountsMgmtV1SupportCasesPostExecute method. - ApiAccountsMgmtV1SupportCasesPostExecuteFunc func(r ApiApiAccountsMgmtV1SupportCasesPostRequest) (SupportCasesCreatedResponse, *http.Response, error) + ApiAccountsMgmtV1SupportCasesPostExecuteFunc func(r ApiApiAccountsMgmtV1SupportCasesPostRequest) (SupportCasesCreatedResponse, *_nethttp.Response, error) // ApiAccountsMgmtV1TokenAuthorizationPostFunc mocks the ApiAccountsMgmtV1TokenAuthorizationPost method. - ApiAccountsMgmtV1TokenAuthorizationPostFunc func(ctx context.Context) ApiApiAccountsMgmtV1TokenAuthorizationPostRequest + ApiAccountsMgmtV1TokenAuthorizationPostFunc func(ctx _context.Context) ApiApiAccountsMgmtV1TokenAuthorizationPostRequest // ApiAccountsMgmtV1TokenAuthorizationPostExecuteFunc mocks the ApiAccountsMgmtV1TokenAuthorizationPostExecute method. - ApiAccountsMgmtV1TokenAuthorizationPostExecuteFunc func(r ApiApiAccountsMgmtV1TokenAuthorizationPostRequest) (TokenAuthorizationResponse, *http.Response, error) + ApiAccountsMgmtV1TokenAuthorizationPostExecuteFunc func(r ApiApiAccountsMgmtV1TokenAuthorizationPostRequest) (TokenAuthorizationResponse, *_nethttp.Response, error) // ApiAuthorizationsV1AccessReviewPostFunc mocks the ApiAuthorizationsV1AccessReviewPost method. - ApiAuthorizationsV1AccessReviewPostFunc func(ctx context.Context) ApiApiAuthorizationsV1AccessReviewPostRequest + ApiAuthorizationsV1AccessReviewPostFunc func(ctx _context.Context) ApiApiAuthorizationsV1AccessReviewPostRequest // ApiAuthorizationsV1AccessReviewPostExecuteFunc mocks the ApiAuthorizationsV1AccessReviewPostExecute method. - ApiAuthorizationsV1AccessReviewPostExecuteFunc func(r ApiApiAuthorizationsV1AccessReviewPostRequest) (AccessReviewResponse, *http.Response, error) + ApiAuthorizationsV1AccessReviewPostExecuteFunc func(r ApiApiAuthorizationsV1AccessReviewPostRequest) (AccessReviewResponse, *_nethttp.Response, error) // ApiAuthorizationsV1CapabilityReviewPostFunc mocks the ApiAuthorizationsV1CapabilityReviewPost method. - ApiAuthorizationsV1CapabilityReviewPostFunc func(ctx context.Context) ApiApiAuthorizationsV1CapabilityReviewPostRequest + ApiAuthorizationsV1CapabilityReviewPostFunc func(ctx _context.Context) ApiApiAuthorizationsV1CapabilityReviewPostRequest // ApiAuthorizationsV1CapabilityReviewPostExecuteFunc mocks the ApiAuthorizationsV1CapabilityReviewPostExecute method. - ApiAuthorizationsV1CapabilityReviewPostExecuteFunc func(r ApiApiAuthorizationsV1CapabilityReviewPostRequest) (CapabilityReview, *http.Response, error) + ApiAuthorizationsV1CapabilityReviewPostExecuteFunc func(r ApiApiAuthorizationsV1CapabilityReviewPostRequest) (CapabilityReview, *_nethttp.Response, error) // ApiAuthorizationsV1ExportControlReviewPostFunc mocks the ApiAuthorizationsV1ExportControlReviewPost method. - ApiAuthorizationsV1ExportControlReviewPostFunc func(ctx context.Context) ApiApiAuthorizationsV1ExportControlReviewPostRequest + ApiAuthorizationsV1ExportControlReviewPostFunc func(ctx _context.Context) ApiApiAuthorizationsV1ExportControlReviewPostRequest // ApiAuthorizationsV1ExportControlReviewPostExecuteFunc mocks the ApiAuthorizationsV1ExportControlReviewPostExecute method. - ApiAuthorizationsV1ExportControlReviewPostExecuteFunc func(r ApiApiAuthorizationsV1ExportControlReviewPostRequest) (ExportControlReview, *http.Response, error) + ApiAuthorizationsV1ExportControlReviewPostExecuteFunc func(r ApiApiAuthorizationsV1ExportControlReviewPostRequest) (ExportControlReview, *_nethttp.Response, error) // ApiAuthorizationsV1ResourceReviewPostFunc mocks the ApiAuthorizationsV1ResourceReviewPost method. - ApiAuthorizationsV1ResourceReviewPostFunc func(ctx context.Context) ApiApiAuthorizationsV1ResourceReviewPostRequest + ApiAuthorizationsV1ResourceReviewPostFunc func(ctx _context.Context) ApiApiAuthorizationsV1ResourceReviewPostRequest // ApiAuthorizationsV1ResourceReviewPostExecuteFunc mocks the ApiAuthorizationsV1ResourceReviewPostExecute method. - ApiAuthorizationsV1ResourceReviewPostExecuteFunc func(r ApiApiAuthorizationsV1ResourceReviewPostRequest) (ResourceReview, *http.Response, error) + ApiAuthorizationsV1ResourceReviewPostExecuteFunc func(r ApiApiAuthorizationsV1ResourceReviewPostRequest) (ResourceReview, *_nethttp.Response, error) // ApiAuthorizationsV1SelfAccessReviewPostFunc mocks the ApiAuthorizationsV1SelfAccessReviewPost method. - ApiAuthorizationsV1SelfAccessReviewPostFunc func(ctx context.Context) ApiApiAuthorizationsV1SelfAccessReviewPostRequest + ApiAuthorizationsV1SelfAccessReviewPostFunc func(ctx _context.Context) ApiApiAuthorizationsV1SelfAccessReviewPostRequest // ApiAuthorizationsV1SelfAccessReviewPostExecuteFunc mocks the ApiAuthorizationsV1SelfAccessReviewPostExecute method. - ApiAuthorizationsV1SelfAccessReviewPostExecuteFunc func(r ApiApiAuthorizationsV1SelfAccessReviewPostRequest) (AccessReviewResponse, *http.Response, error) + ApiAuthorizationsV1SelfAccessReviewPostExecuteFunc func(r ApiApiAuthorizationsV1SelfAccessReviewPostRequest) (AccessReviewResponse, *_nethttp.Response, error) // ApiAuthorizationsV1SelfResourceReviewPostFunc mocks the ApiAuthorizationsV1SelfResourceReviewPost method. - ApiAuthorizationsV1SelfResourceReviewPostFunc func(ctx context.Context) ApiApiAuthorizationsV1SelfResourceReviewPostRequest + ApiAuthorizationsV1SelfResourceReviewPostFunc func(ctx _context.Context) ApiApiAuthorizationsV1SelfResourceReviewPostRequest // ApiAuthorizationsV1SelfResourceReviewPostExecuteFunc mocks the ApiAuthorizationsV1SelfResourceReviewPostExecute method. - ApiAuthorizationsV1SelfResourceReviewPostExecuteFunc func(r ApiApiAuthorizationsV1SelfResourceReviewPostRequest) (SelfResourceReview, *http.Response, error) + ApiAuthorizationsV1SelfResourceReviewPostExecuteFunc func(r ApiApiAuthorizationsV1SelfResourceReviewPostRequest) (SelfResourceReview, *_nethttp.Response, error) // ApiAuthorizationsV1SelfTermsReviewPostFunc mocks the ApiAuthorizationsV1SelfTermsReviewPost method. - ApiAuthorizationsV1SelfTermsReviewPostFunc func(ctx context.Context) ApiApiAuthorizationsV1SelfTermsReviewPostRequest + ApiAuthorizationsV1SelfTermsReviewPostFunc func(ctx _context.Context) ApiApiAuthorizationsV1SelfTermsReviewPostRequest // ApiAuthorizationsV1SelfTermsReviewPostExecuteFunc mocks the ApiAuthorizationsV1SelfTermsReviewPostExecute method. - ApiAuthorizationsV1SelfTermsReviewPostExecuteFunc func(r ApiApiAuthorizationsV1SelfTermsReviewPostRequest) (TermsReviewResponse, *http.Response, error) + ApiAuthorizationsV1SelfTermsReviewPostExecuteFunc func(r ApiApiAuthorizationsV1SelfTermsReviewPostRequest) (TermsReviewResponse, *_nethttp.Response, error) // ApiAuthorizationsV1TermsReviewPostFunc mocks the ApiAuthorizationsV1TermsReviewPost method. - ApiAuthorizationsV1TermsReviewPostFunc func(ctx context.Context) ApiApiAuthorizationsV1TermsReviewPostRequest + ApiAuthorizationsV1TermsReviewPostFunc func(ctx _context.Context) ApiApiAuthorizationsV1TermsReviewPostRequest // ApiAuthorizationsV1TermsReviewPostExecuteFunc mocks the ApiAuthorizationsV1TermsReviewPostExecute method. - ApiAuthorizationsV1TermsReviewPostExecuteFunc func(r ApiApiAuthorizationsV1TermsReviewPostRequest) (TermsReviewResponse, *http.Response, error) + ApiAuthorizationsV1TermsReviewPostExecuteFunc func(r ApiApiAuthorizationsV1TermsReviewPostRequest) (TermsReviewResponse, *_nethttp.Response, error) // calls tracks calls to the methods. calls struct { // ApiAccountsMgmtV1AccessTokenPost holds details about calls to the ApiAccountsMgmtV1AccessTokenPost method. ApiAccountsMgmtV1AccessTokenPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1AccessTokenPostExecute holds details about calls to the ApiAccountsMgmtV1AccessTokenPostExecute method. ApiAccountsMgmtV1AccessTokenPostExecute []struct { @@ -1097,7 +1097,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1AccountsGet holds details about calls to the ApiAccountsMgmtV1AccountsGet method. ApiAccountsMgmtV1AccountsGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1AccountsGetExecute holds details about calls to the ApiAccountsMgmtV1AccountsGetExecute method. ApiAccountsMgmtV1AccountsGetExecute []struct { @@ -1107,7 +1107,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1AccountsIdGet holds details about calls to the ApiAccountsMgmtV1AccountsIdGet method. ApiAccountsMgmtV1AccountsIdGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1119,7 +1119,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1AccountsIdLabelsGet holds details about calls to the ApiAccountsMgmtV1AccountsIdLabelsGet method. ApiAccountsMgmtV1AccountsIdLabelsGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1131,7 +1131,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1AccountsIdLabelsKeyDelete holds details about calls to the ApiAccountsMgmtV1AccountsIdLabelsKeyDelete method. ApiAccountsMgmtV1AccountsIdLabelsKeyDelete []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string // Key is the key argument value. @@ -1145,7 +1145,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1AccountsIdLabelsKeyGet holds details about calls to the ApiAccountsMgmtV1AccountsIdLabelsKeyGet method. ApiAccountsMgmtV1AccountsIdLabelsKeyGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string // Key is the key argument value. @@ -1159,7 +1159,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1AccountsIdLabelsKeyPatch holds details about calls to the ApiAccountsMgmtV1AccountsIdLabelsKeyPatch method. ApiAccountsMgmtV1AccountsIdLabelsKeyPatch []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string // Key is the key argument value. @@ -1173,7 +1173,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1AccountsIdLabelsPost holds details about calls to the ApiAccountsMgmtV1AccountsIdLabelsPost method. ApiAccountsMgmtV1AccountsIdLabelsPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1185,7 +1185,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1AccountsIdPatch holds details about calls to the ApiAccountsMgmtV1AccountsIdPatch method. ApiAccountsMgmtV1AccountsIdPatch []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1197,7 +1197,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1AccountsPost holds details about calls to the ApiAccountsMgmtV1AccountsPost method. ApiAccountsMgmtV1AccountsPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1AccountsPostExecute holds details about calls to the ApiAccountsMgmtV1AccountsPostExecute method. ApiAccountsMgmtV1AccountsPostExecute []struct { @@ -1207,7 +1207,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1ClusterAuthorizationsPost holds details about calls to the ApiAccountsMgmtV1ClusterAuthorizationsPost method. ApiAccountsMgmtV1ClusterAuthorizationsPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1ClusterAuthorizationsPostExecute holds details about calls to the ApiAccountsMgmtV1ClusterAuthorizationsPostExecute method. ApiAccountsMgmtV1ClusterAuthorizationsPostExecute []struct { @@ -1217,7 +1217,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1ClusterRegistrationsPost holds details about calls to the ApiAccountsMgmtV1ClusterRegistrationsPost method. ApiAccountsMgmtV1ClusterRegistrationsPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1ClusterRegistrationsPostExecute holds details about calls to the ApiAccountsMgmtV1ClusterRegistrationsPostExecute method. ApiAccountsMgmtV1ClusterRegistrationsPostExecute []struct { @@ -1227,7 +1227,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1CurrentAccountGet holds details about calls to the ApiAccountsMgmtV1CurrentAccountGet method. ApiAccountsMgmtV1CurrentAccountGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1CurrentAccountGetExecute holds details about calls to the ApiAccountsMgmtV1CurrentAccountGetExecute method. ApiAccountsMgmtV1CurrentAccountGetExecute []struct { @@ -1237,7 +1237,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1ErrorsGet holds details about calls to the ApiAccountsMgmtV1ErrorsGet method. ApiAccountsMgmtV1ErrorsGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1ErrorsGetExecute holds details about calls to the ApiAccountsMgmtV1ErrorsGetExecute method. ApiAccountsMgmtV1ErrorsGetExecute []struct { @@ -1247,7 +1247,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1ErrorsIdGet holds details about calls to the ApiAccountsMgmtV1ErrorsIdGet method. ApiAccountsMgmtV1ErrorsIdGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1259,7 +1259,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1FeatureTogglesIdQueryPost holds details about calls to the ApiAccountsMgmtV1FeatureTogglesIdQueryPost method. ApiAccountsMgmtV1FeatureTogglesIdQueryPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1271,7 +1271,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1LabelsGet holds details about calls to the ApiAccountsMgmtV1LabelsGet method. ApiAccountsMgmtV1LabelsGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1LabelsGetExecute holds details about calls to the ApiAccountsMgmtV1LabelsGetExecute method. ApiAccountsMgmtV1LabelsGetExecute []struct { @@ -1281,7 +1281,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1MetricsGet holds details about calls to the ApiAccountsMgmtV1MetricsGet method. ApiAccountsMgmtV1MetricsGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1MetricsGetExecute holds details about calls to the ApiAccountsMgmtV1MetricsGetExecute method. ApiAccountsMgmtV1MetricsGetExecute []struct { @@ -1291,7 +1291,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1NotifyPost holds details about calls to the ApiAccountsMgmtV1NotifyPost method. ApiAccountsMgmtV1NotifyPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1NotifyPostExecute holds details about calls to the ApiAccountsMgmtV1NotifyPostExecute method. ApiAccountsMgmtV1NotifyPostExecute []struct { @@ -1301,7 +1301,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1OrganizationsGet holds details about calls to the ApiAccountsMgmtV1OrganizationsGet method. ApiAccountsMgmtV1OrganizationsGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1OrganizationsGetExecute holds details about calls to the ApiAccountsMgmtV1OrganizationsGetExecute method. ApiAccountsMgmtV1OrganizationsGetExecute []struct { @@ -1311,7 +1311,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1OrganizationsIdGet holds details about calls to the ApiAccountsMgmtV1OrganizationsIdGet method. ApiAccountsMgmtV1OrganizationsIdGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1323,7 +1323,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1OrganizationsIdLabelsGet holds details about calls to the ApiAccountsMgmtV1OrganizationsIdLabelsGet method. ApiAccountsMgmtV1OrganizationsIdLabelsGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1335,7 +1335,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete holds details about calls to the ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete method. ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string // Key is the key argument value. @@ -1349,7 +1349,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet holds details about calls to the ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet method. ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string // Key is the key argument value. @@ -1363,7 +1363,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch holds details about calls to the ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch method. ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string // Key is the key argument value. @@ -1377,7 +1377,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1OrganizationsIdLabelsPost holds details about calls to the ApiAccountsMgmtV1OrganizationsIdLabelsPost method. ApiAccountsMgmtV1OrganizationsIdLabelsPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1389,7 +1389,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1OrganizationsIdPatch holds details about calls to the ApiAccountsMgmtV1OrganizationsIdPatch method. ApiAccountsMgmtV1OrganizationsIdPatch []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1401,7 +1401,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet holds details about calls to the ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet method. ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1413,7 +1413,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet holds details about calls to the ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet method. ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // OrgId is the orgId argument value. OrgId string } @@ -1425,7 +1425,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet holds details about calls to the ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet method. ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // OrgId is the orgId argument value. OrgId string } @@ -1437,7 +1437,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet holds details about calls to the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet method. ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // OrgId is the orgId argument value. OrgId string } @@ -1449,7 +1449,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost holds details about calls to the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost method. ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // OrgId is the orgId argument value. OrgId string } @@ -1461,7 +1461,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete holds details about calls to the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete method. ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // OrgId is the orgId argument value. OrgId string // QuotaId is the quotaId argument value. @@ -1475,7 +1475,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet holds details about calls to the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet method. ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // OrgId is the orgId argument value. OrgId string // QuotaId is the quotaId argument value. @@ -1489,7 +1489,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch holds details about calls to the ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch method. ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // OrgId is the orgId argument value. OrgId string // QuotaId is the quotaId argument value. @@ -1503,7 +1503,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1OrganizationsPost holds details about calls to the ApiAccountsMgmtV1OrganizationsPost method. ApiAccountsMgmtV1OrganizationsPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1OrganizationsPostExecute holds details about calls to the ApiAccountsMgmtV1OrganizationsPostExecute method. ApiAccountsMgmtV1OrganizationsPostExecute []struct { @@ -1513,7 +1513,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1PlansGet holds details about calls to the ApiAccountsMgmtV1PlansGet method. ApiAccountsMgmtV1PlansGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1PlansGetExecute holds details about calls to the ApiAccountsMgmtV1PlansGetExecute method. ApiAccountsMgmtV1PlansGetExecute []struct { @@ -1523,7 +1523,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1PlansIdGet holds details about calls to the ApiAccountsMgmtV1PlansIdGet method. ApiAccountsMgmtV1PlansIdGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1535,7 +1535,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete holds details about calls to the ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete method. ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ExternalResourceId is the externalResourceId argument value. ExternalResourceId string } @@ -1547,7 +1547,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1PullSecretsPost holds details about calls to the ApiAccountsMgmtV1PullSecretsPost method. ApiAccountsMgmtV1PullSecretsPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1PullSecretsPostExecute holds details about calls to the ApiAccountsMgmtV1PullSecretsPostExecute method. ApiAccountsMgmtV1PullSecretsPostExecute []struct { @@ -1557,7 +1557,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1RegistriesGet holds details about calls to the ApiAccountsMgmtV1RegistriesGet method. ApiAccountsMgmtV1RegistriesGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1RegistriesGetExecute holds details about calls to the ApiAccountsMgmtV1RegistriesGetExecute method. ApiAccountsMgmtV1RegistriesGetExecute []struct { @@ -1567,7 +1567,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1RegistriesIdGet holds details about calls to the ApiAccountsMgmtV1RegistriesIdGet method. ApiAccountsMgmtV1RegistriesIdGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1579,7 +1579,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1RegistryCredentialsGet holds details about calls to the ApiAccountsMgmtV1RegistryCredentialsGet method. ApiAccountsMgmtV1RegistryCredentialsGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1RegistryCredentialsGetExecute holds details about calls to the ApiAccountsMgmtV1RegistryCredentialsGetExecute method. ApiAccountsMgmtV1RegistryCredentialsGetExecute []struct { @@ -1589,7 +1589,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1RegistryCredentialsIdDelete holds details about calls to the ApiAccountsMgmtV1RegistryCredentialsIdDelete method. ApiAccountsMgmtV1RegistryCredentialsIdDelete []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1601,7 +1601,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1RegistryCredentialsIdGet holds details about calls to the ApiAccountsMgmtV1RegistryCredentialsIdGet method. ApiAccountsMgmtV1RegistryCredentialsIdGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1613,7 +1613,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1RegistryCredentialsIdPatch holds details about calls to the ApiAccountsMgmtV1RegistryCredentialsIdPatch method. ApiAccountsMgmtV1RegistryCredentialsIdPatch []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1625,7 +1625,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1RegistryCredentialsPost holds details about calls to the ApiAccountsMgmtV1RegistryCredentialsPost method. ApiAccountsMgmtV1RegistryCredentialsPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1RegistryCredentialsPostExecute holds details about calls to the ApiAccountsMgmtV1RegistryCredentialsPostExecute method. ApiAccountsMgmtV1RegistryCredentialsPostExecute []struct { @@ -1635,7 +1635,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1ReservedResourcesGet holds details about calls to the ApiAccountsMgmtV1ReservedResourcesGet method. ApiAccountsMgmtV1ReservedResourcesGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1ReservedResourcesGetExecute holds details about calls to the ApiAccountsMgmtV1ReservedResourcesGetExecute method. ApiAccountsMgmtV1ReservedResourcesGetExecute []struct { @@ -1645,7 +1645,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1ResourceQuotaGet holds details about calls to the ApiAccountsMgmtV1ResourceQuotaGet method. ApiAccountsMgmtV1ResourceQuotaGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1ResourceQuotaGetExecute holds details about calls to the ApiAccountsMgmtV1ResourceQuotaGetExecute method. ApiAccountsMgmtV1ResourceQuotaGetExecute []struct { @@ -1655,7 +1655,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1RoleBindingsGet holds details about calls to the ApiAccountsMgmtV1RoleBindingsGet method. ApiAccountsMgmtV1RoleBindingsGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1RoleBindingsGetExecute holds details about calls to the ApiAccountsMgmtV1RoleBindingsGetExecute method. ApiAccountsMgmtV1RoleBindingsGetExecute []struct { @@ -1665,7 +1665,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1RoleBindingsIdDelete holds details about calls to the ApiAccountsMgmtV1RoleBindingsIdDelete method. ApiAccountsMgmtV1RoleBindingsIdDelete []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1677,7 +1677,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1RoleBindingsIdGet holds details about calls to the ApiAccountsMgmtV1RoleBindingsIdGet method. ApiAccountsMgmtV1RoleBindingsIdGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1689,7 +1689,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1RoleBindingsIdPatch holds details about calls to the ApiAccountsMgmtV1RoleBindingsIdPatch method. ApiAccountsMgmtV1RoleBindingsIdPatch []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1701,7 +1701,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1RoleBindingsPost holds details about calls to the ApiAccountsMgmtV1RoleBindingsPost method. ApiAccountsMgmtV1RoleBindingsPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1RoleBindingsPostExecute holds details about calls to the ApiAccountsMgmtV1RoleBindingsPostExecute method. ApiAccountsMgmtV1RoleBindingsPostExecute []struct { @@ -1711,7 +1711,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1RolesGet holds details about calls to the ApiAccountsMgmtV1RolesGet method. ApiAccountsMgmtV1RolesGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1RolesGetExecute holds details about calls to the ApiAccountsMgmtV1RolesGetExecute method. ApiAccountsMgmtV1RolesGetExecute []struct { @@ -1721,7 +1721,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1RolesIdGet holds details about calls to the ApiAccountsMgmtV1RolesIdGet method. ApiAccountsMgmtV1RolesIdGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1733,7 +1733,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SkuRulesGet holds details about calls to the ApiAccountsMgmtV1SkuRulesGet method. ApiAccountsMgmtV1SkuRulesGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1SkuRulesGetExecute holds details about calls to the ApiAccountsMgmtV1SkuRulesGetExecute method. ApiAccountsMgmtV1SkuRulesGetExecute []struct { @@ -1743,7 +1743,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SkuRulesIdGet holds details about calls to the ApiAccountsMgmtV1SkuRulesIdGet method. ApiAccountsMgmtV1SkuRulesIdGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1755,7 +1755,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SkusGet holds details about calls to the ApiAccountsMgmtV1SkusGet method. ApiAccountsMgmtV1SkusGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1SkusGetExecute holds details about calls to the ApiAccountsMgmtV1SkusGetExecute method. ApiAccountsMgmtV1SkusGetExecute []struct { @@ -1765,7 +1765,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SkusIdGet holds details about calls to the ApiAccountsMgmtV1SkusIdGet method. ApiAccountsMgmtV1SkusIdGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1777,7 +1777,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SubscriptionsGet holds details about calls to the ApiAccountsMgmtV1SubscriptionsGet method. ApiAccountsMgmtV1SubscriptionsGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1SubscriptionsGetExecute holds details about calls to the ApiAccountsMgmtV1SubscriptionsGetExecute method. ApiAccountsMgmtV1SubscriptionsGetExecute []struct { @@ -1787,7 +1787,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SubscriptionsIdDelete holds details about calls to the ApiAccountsMgmtV1SubscriptionsIdDelete method. ApiAccountsMgmtV1SubscriptionsIdDelete []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1799,7 +1799,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SubscriptionsIdGet holds details about calls to the ApiAccountsMgmtV1SubscriptionsIdGet method. ApiAccountsMgmtV1SubscriptionsIdGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1811,7 +1811,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SubscriptionsIdLabelsGet holds details about calls to the ApiAccountsMgmtV1SubscriptionsIdLabelsGet method. ApiAccountsMgmtV1SubscriptionsIdLabelsGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1823,7 +1823,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete holds details about calls to the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete method. ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string // Key is the key argument value. @@ -1837,7 +1837,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet holds details about calls to the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet method. ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string // Key is the key argument value. @@ -1851,7 +1851,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch holds details about calls to the ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch method. ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string // Key is the key argument value. @@ -1865,7 +1865,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SubscriptionsIdLabelsPost holds details about calls to the ApiAccountsMgmtV1SubscriptionsIdLabelsPost method. ApiAccountsMgmtV1SubscriptionsIdLabelsPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1877,7 +1877,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SubscriptionsIdNotifyPost holds details about calls to the ApiAccountsMgmtV1SubscriptionsIdNotifyPost method. ApiAccountsMgmtV1SubscriptionsIdNotifyPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1889,7 +1889,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SubscriptionsIdPatch holds details about calls to the ApiAccountsMgmtV1SubscriptionsIdPatch method. ApiAccountsMgmtV1SubscriptionsIdPatch []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1901,7 +1901,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet holds details about calls to the ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet method. ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1913,7 +1913,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet holds details about calls to the ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet method. ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // ID is the id argument value. ID string } @@ -1925,7 +1925,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SubscriptionsPost holds details about calls to the ApiAccountsMgmtV1SubscriptionsPost method. ApiAccountsMgmtV1SubscriptionsPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1SubscriptionsPostExecute holds details about calls to the ApiAccountsMgmtV1SubscriptionsPostExecute method. ApiAccountsMgmtV1SubscriptionsPostExecute []struct { @@ -1935,7 +1935,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete holds details about calls to the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete method. ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // SubId is the subId argument value. SubId string // AccountId is the accountId argument value. @@ -1949,7 +1949,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet holds details about calls to the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet method. ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // SubId is the subId argument value. SubId string } @@ -1961,7 +1961,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost holds details about calls to the ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost method. ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // SubId is the subId argument value. SubId string } @@ -1973,7 +1973,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet holds details about calls to the ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet method. ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // SubId is the subId argument value. SubId string // ReservedResourceId is the reservedResourceId argument value. @@ -1987,7 +1987,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SupportCasesCaseIdDelete holds details about calls to the ApiAccountsMgmtV1SupportCasesCaseIdDelete method. ApiAccountsMgmtV1SupportCasesCaseIdDelete []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context // CaseId is the caseId argument value. CaseId string } @@ -1999,7 +1999,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1SupportCasesPost holds details about calls to the ApiAccountsMgmtV1SupportCasesPost method. ApiAccountsMgmtV1SupportCasesPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1SupportCasesPostExecute holds details about calls to the ApiAccountsMgmtV1SupportCasesPostExecute method. ApiAccountsMgmtV1SupportCasesPostExecute []struct { @@ -2009,7 +2009,7 @@ type DefaultApiMock struct { // ApiAccountsMgmtV1TokenAuthorizationPost holds details about calls to the ApiAccountsMgmtV1TokenAuthorizationPost method. ApiAccountsMgmtV1TokenAuthorizationPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAccountsMgmtV1TokenAuthorizationPostExecute holds details about calls to the ApiAccountsMgmtV1TokenAuthorizationPostExecute method. ApiAccountsMgmtV1TokenAuthorizationPostExecute []struct { @@ -2019,7 +2019,7 @@ type DefaultApiMock struct { // ApiAuthorizationsV1AccessReviewPost holds details about calls to the ApiAuthorizationsV1AccessReviewPost method. ApiAuthorizationsV1AccessReviewPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAuthorizationsV1AccessReviewPostExecute holds details about calls to the ApiAuthorizationsV1AccessReviewPostExecute method. ApiAuthorizationsV1AccessReviewPostExecute []struct { @@ -2029,7 +2029,7 @@ type DefaultApiMock struct { // ApiAuthorizationsV1CapabilityReviewPost holds details about calls to the ApiAuthorizationsV1CapabilityReviewPost method. ApiAuthorizationsV1CapabilityReviewPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAuthorizationsV1CapabilityReviewPostExecute holds details about calls to the ApiAuthorizationsV1CapabilityReviewPostExecute method. ApiAuthorizationsV1CapabilityReviewPostExecute []struct { @@ -2039,7 +2039,7 @@ type DefaultApiMock struct { // ApiAuthorizationsV1ExportControlReviewPost holds details about calls to the ApiAuthorizationsV1ExportControlReviewPost method. ApiAuthorizationsV1ExportControlReviewPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAuthorizationsV1ExportControlReviewPostExecute holds details about calls to the ApiAuthorizationsV1ExportControlReviewPostExecute method. ApiAuthorizationsV1ExportControlReviewPostExecute []struct { @@ -2049,7 +2049,7 @@ type DefaultApiMock struct { // ApiAuthorizationsV1ResourceReviewPost holds details about calls to the ApiAuthorizationsV1ResourceReviewPost method. ApiAuthorizationsV1ResourceReviewPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAuthorizationsV1ResourceReviewPostExecute holds details about calls to the ApiAuthorizationsV1ResourceReviewPostExecute method. ApiAuthorizationsV1ResourceReviewPostExecute []struct { @@ -2059,7 +2059,7 @@ type DefaultApiMock struct { // ApiAuthorizationsV1SelfAccessReviewPost holds details about calls to the ApiAuthorizationsV1SelfAccessReviewPost method. ApiAuthorizationsV1SelfAccessReviewPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAuthorizationsV1SelfAccessReviewPostExecute holds details about calls to the ApiAuthorizationsV1SelfAccessReviewPostExecute method. ApiAuthorizationsV1SelfAccessReviewPostExecute []struct { @@ -2069,7 +2069,7 @@ type DefaultApiMock struct { // ApiAuthorizationsV1SelfResourceReviewPost holds details about calls to the ApiAuthorizationsV1SelfResourceReviewPost method. ApiAuthorizationsV1SelfResourceReviewPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAuthorizationsV1SelfResourceReviewPostExecute holds details about calls to the ApiAuthorizationsV1SelfResourceReviewPostExecute method. ApiAuthorizationsV1SelfResourceReviewPostExecute []struct { @@ -2079,7 +2079,7 @@ type DefaultApiMock struct { // ApiAuthorizationsV1SelfTermsReviewPost holds details about calls to the ApiAuthorizationsV1SelfTermsReviewPost method. ApiAuthorizationsV1SelfTermsReviewPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAuthorizationsV1SelfTermsReviewPostExecute holds details about calls to the ApiAuthorizationsV1SelfTermsReviewPostExecute method. ApiAuthorizationsV1SelfTermsReviewPostExecute []struct { @@ -2089,7 +2089,7 @@ type DefaultApiMock struct { // ApiAuthorizationsV1TermsReviewPost holds details about calls to the ApiAuthorizationsV1TermsReviewPost method. ApiAuthorizationsV1TermsReviewPost []struct { // Ctx is the ctx argument value. - Ctx context.Context + Ctx _context.Context } // ApiAuthorizationsV1TermsReviewPostExecute holds details about calls to the ApiAuthorizationsV1TermsReviewPostExecute method. ApiAuthorizationsV1TermsReviewPostExecute []struct { @@ -2276,12 +2276,12 @@ type DefaultApiMock struct { } // ApiAccountsMgmtV1AccessTokenPost calls ApiAccountsMgmtV1AccessTokenPostFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccessTokenPost(ctx context.Context) ApiApiAccountsMgmtV1AccessTokenPostRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccessTokenPost(ctx _context.Context) ApiApiAccountsMgmtV1AccessTokenPostRequest { if mock.ApiAccountsMgmtV1AccessTokenPostFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccessTokenPostFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccessTokenPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -2295,10 +2295,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccessTokenPost(ctx context.Context // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1AccessTokenPostCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1AccessTokenPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1AccessTokenPost.RLock() calls = mock.calls.ApiAccountsMgmtV1AccessTokenPost @@ -2307,7 +2307,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccessTokenPostCalls() []struct { } // ApiAccountsMgmtV1AccessTokenPostExecute calls ApiAccountsMgmtV1AccessTokenPostExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccessTokenPostExecute(r ApiApiAccountsMgmtV1AccessTokenPostRequest) (AccessTokenCfg, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccessTokenPostExecute(r ApiApiAccountsMgmtV1AccessTokenPostRequest) (AccessTokenCfg, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1AccessTokenPostExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccessTokenPostExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccessTokenPostExecute was just called") } @@ -2338,12 +2338,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccessTokenPostExecuteCalls() []str } // ApiAccountsMgmtV1AccountsGet calls ApiAccountsMgmtV1AccountsGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsGet(ctx context.Context) ApiApiAccountsMgmtV1AccountsGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsGet(ctx _context.Context) ApiApiAccountsMgmtV1AccountsGetRequest { if mock.ApiAccountsMgmtV1AccountsGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccountsGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccountsGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -2357,10 +2357,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsGet(ctx context.Context) Ap // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1AccountsGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsGetCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1AccountsGet.RLock() calls = mock.calls.ApiAccountsMgmtV1AccountsGet @@ -2369,7 +2369,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsGetCalls() []struct { } // ApiAccountsMgmtV1AccountsGetExecute calls ApiAccountsMgmtV1AccountsGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsGetExecute(r ApiApiAccountsMgmtV1AccountsGetRequest) (AccountList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsGetExecute(r ApiApiAccountsMgmtV1AccountsGetRequest) (AccountList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1AccountsGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccountsGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccountsGetExecute was just called") } @@ -2400,12 +2400,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsGetExecuteCalls() []struct } // ApiAccountsMgmtV1AccountsIdGet calls ApiAccountsMgmtV1AccountsIdGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdGet(ctx context.Context, id string) ApiApiAccountsMgmtV1AccountsIdGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdGetRequest { if mock.ApiAccountsMgmtV1AccountsIdGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccountsIdGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccountsIdGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -2421,11 +2421,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdGet(ctx context.Context, // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1AccountsIdGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1AccountsIdGet.RLock() @@ -2435,7 +2435,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdGetCalls() []struct { } // ApiAccountsMgmtV1AccountsIdGetExecute calls ApiAccountsMgmtV1AccountsIdGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdGetExecute(r ApiApiAccountsMgmtV1AccountsIdGetRequest) (Account, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdGetExecute(r ApiApiAccountsMgmtV1AccountsIdGetRequest) (Account, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1AccountsIdGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccountsIdGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccountsIdGetExecute was just called") } @@ -2466,12 +2466,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdGetExecuteCalls() []struc } // ApiAccountsMgmtV1AccountsIdLabelsGet calls ApiAccountsMgmtV1AccountsIdLabelsGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsGet(ctx context.Context, id string) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest { if mock.ApiAccountsMgmtV1AccountsIdLabelsGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccountsIdLabelsGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -2487,11 +2487,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsGet(ctx context.Con // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1AccountsIdLabelsGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1AccountsIdLabelsGet.RLock() @@ -2501,7 +2501,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsGetCalls() []struct } // ApiAccountsMgmtV1AccountsIdLabelsGetExecute calls ApiAccountsMgmtV1AccountsIdLabelsGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsGetExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) (LabelList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsGetExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1AccountsIdLabelsGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccountsIdLabelsGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsGetExecute was just called") } @@ -2532,12 +2532,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsGetExecuteCalls() [ } // ApiAccountsMgmtV1AccountsIdLabelsKeyDelete calls ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyDelete(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyDelete(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest { if mock.ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsKeyDelete was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string Key string }{ @@ -2555,12 +2555,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyDelete(ctx conte // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string Key string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string Key string } @@ -2571,7 +2571,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteCalls() [] } // ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecute calls ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest) (*http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) { if mock.ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecute was just called") } @@ -2602,12 +2602,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecuteCal } // ApiAccountsMgmtV1AccountsIdLabelsKeyGet calls ApiAccountsMgmtV1AccountsIdLabelsKeyGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyGet(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyGet(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest { if mock.ApiAccountsMgmtV1AccountsIdLabelsKeyGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccountsIdLabelsKeyGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsKeyGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string Key string }{ @@ -2625,12 +2625,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyGet(ctx context. // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1AccountsIdLabelsKeyGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string Key string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string Key string } @@ -2641,7 +2641,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyGetCalls() []str } // ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecute calls ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest) (Label, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecute was just called") } @@ -2672,12 +2672,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecuteCalls( } // ApiAccountsMgmtV1AccountsIdLabelsKeyPatch calls ApiAccountsMgmtV1AccountsIdLabelsKeyPatchFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyPatch(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyPatch(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest { if mock.ApiAccountsMgmtV1AccountsIdLabelsKeyPatchFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccountsIdLabelsKeyPatchFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsKeyPatch was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string Key string }{ @@ -2695,12 +2695,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyPatch(ctx contex // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1AccountsIdLabelsKeyPatchCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyPatchCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string Key string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string Key string } @@ -2711,7 +2711,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyPatchCalls() []s } // ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecute calls ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest) (Label, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecute was just called") } @@ -2742,12 +2742,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecuteCall } // ApiAccountsMgmtV1AccountsIdLabelsPost calls ApiAccountsMgmtV1AccountsIdLabelsPostFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsPost(ctx context.Context, id string) ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsPost(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest { if mock.ApiAccountsMgmtV1AccountsIdLabelsPostFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccountsIdLabelsPostFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -2763,11 +2763,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsPost(ctx context.Co // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1AccountsIdLabelsPostCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsPostCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1AccountsIdLabelsPost.RLock() @@ -2777,7 +2777,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsPostCalls() []struc } // ApiAccountsMgmtV1AccountsIdLabelsPostExecute calls ApiAccountsMgmtV1AccountsIdLabelsPostExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsPostExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest) (Label, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsPostExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest) (Label, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1AccountsIdLabelsPostExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccountsIdLabelsPostExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsPostExecute was just called") } @@ -2808,12 +2808,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdLabelsPostExecuteCalls() } // ApiAccountsMgmtV1AccountsIdPatch calls ApiAccountsMgmtV1AccountsIdPatchFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdPatch(ctx context.Context, id string) ApiApiAccountsMgmtV1AccountsIdPatchRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdPatchRequest { if mock.ApiAccountsMgmtV1AccountsIdPatchFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccountsIdPatchFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccountsIdPatch was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -2829,11 +2829,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdPatch(ctx context.Context // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1AccountsIdPatchCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdPatchCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1AccountsIdPatch.RLock() @@ -2843,7 +2843,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdPatchCalls() []struct { } // ApiAccountsMgmtV1AccountsIdPatchExecute calls ApiAccountsMgmtV1AccountsIdPatchExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdPatchExecute(r ApiApiAccountsMgmtV1AccountsIdPatchRequest) (Account, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdPatchExecute(r ApiApiAccountsMgmtV1AccountsIdPatchRequest) (Account, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1AccountsIdPatchExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccountsIdPatchExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccountsIdPatchExecute was just called") } @@ -2874,12 +2874,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsIdPatchExecuteCalls() []str } // ApiAccountsMgmtV1AccountsPost calls ApiAccountsMgmtV1AccountsPostFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsPost(ctx context.Context) ApiApiAccountsMgmtV1AccountsPostRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsPost(ctx _context.Context) ApiApiAccountsMgmtV1AccountsPostRequest { if mock.ApiAccountsMgmtV1AccountsPostFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccountsPostFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccountsPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -2893,10 +2893,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsPost(ctx context.Context) A // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1AccountsPostCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1AccountsPost.RLock() calls = mock.calls.ApiAccountsMgmtV1AccountsPost @@ -2905,7 +2905,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsPostCalls() []struct { } // ApiAccountsMgmtV1AccountsPostExecute calls ApiAccountsMgmtV1AccountsPostExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsPostExecute(r ApiApiAccountsMgmtV1AccountsPostRequest) (Account, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsPostExecute(r ApiApiAccountsMgmtV1AccountsPostRequest) (Account, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1AccountsPostExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1AccountsPostExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1AccountsPostExecute was just called") } @@ -2936,12 +2936,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1AccountsPostExecuteCalls() []struct } // ApiAccountsMgmtV1ClusterAuthorizationsPost calls ApiAccountsMgmtV1ClusterAuthorizationsPostFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1ClusterAuthorizationsPost(ctx context.Context) ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1ClusterAuthorizationsPost(ctx _context.Context) ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest { if mock.ApiAccountsMgmtV1ClusterAuthorizationsPostFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1ClusterAuthorizationsPostFunc: method is nil but DefaultApi.ApiAccountsMgmtV1ClusterAuthorizationsPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -2955,10 +2955,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1ClusterAuthorizationsPost(ctx conte // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1ClusterAuthorizationsPostCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1ClusterAuthorizationsPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1ClusterAuthorizationsPost.RLock() calls = mock.calls.ApiAccountsMgmtV1ClusterAuthorizationsPost @@ -2967,7 +2967,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1ClusterAuthorizationsPostCalls() [] } // ApiAccountsMgmtV1ClusterAuthorizationsPostExecute calls ApiAccountsMgmtV1ClusterAuthorizationsPostExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1ClusterAuthorizationsPostExecute(r ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest) (ClusterAuthorizationResponse, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1ClusterAuthorizationsPostExecute(r ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest) (ClusterAuthorizationResponse, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1ClusterAuthorizationsPostExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1ClusterAuthorizationsPostExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1ClusterAuthorizationsPostExecute was just called") } @@ -2998,12 +2998,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1ClusterAuthorizationsPostExecuteCal } // ApiAccountsMgmtV1ClusterRegistrationsPost calls ApiAccountsMgmtV1ClusterRegistrationsPostFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1ClusterRegistrationsPost(ctx context.Context) ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1ClusterRegistrationsPost(ctx _context.Context) ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest { if mock.ApiAccountsMgmtV1ClusterRegistrationsPostFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1ClusterRegistrationsPostFunc: method is nil but DefaultApi.ApiAccountsMgmtV1ClusterRegistrationsPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -3017,10 +3017,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1ClusterRegistrationsPost(ctx contex // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1ClusterRegistrationsPostCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1ClusterRegistrationsPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1ClusterRegistrationsPost.RLock() calls = mock.calls.ApiAccountsMgmtV1ClusterRegistrationsPost @@ -3029,7 +3029,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1ClusterRegistrationsPostCalls() []s } // ApiAccountsMgmtV1ClusterRegistrationsPostExecute calls ApiAccountsMgmtV1ClusterRegistrationsPostExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1ClusterRegistrationsPostExecute(r ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest) (ClusterRegistrationResponse, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1ClusterRegistrationsPostExecute(r ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest) (ClusterRegistrationResponse, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1ClusterRegistrationsPostExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1ClusterRegistrationsPostExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1ClusterRegistrationsPostExecute was just called") } @@ -3060,12 +3060,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1ClusterRegistrationsPostExecuteCall } // ApiAccountsMgmtV1CurrentAccountGet calls ApiAccountsMgmtV1CurrentAccountGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1CurrentAccountGet(ctx context.Context) ApiApiAccountsMgmtV1CurrentAccountGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1CurrentAccountGet(ctx _context.Context) ApiApiAccountsMgmtV1CurrentAccountGetRequest { if mock.ApiAccountsMgmtV1CurrentAccountGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1CurrentAccountGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1CurrentAccountGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -3079,10 +3079,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1CurrentAccountGet(ctx context.Conte // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1CurrentAccountGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1CurrentAccountGetCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1CurrentAccountGet.RLock() calls = mock.calls.ApiAccountsMgmtV1CurrentAccountGet @@ -3091,7 +3091,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1CurrentAccountGetCalls() []struct { } // ApiAccountsMgmtV1CurrentAccountGetExecute calls ApiAccountsMgmtV1CurrentAccountGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1CurrentAccountGetExecute(r ApiApiAccountsMgmtV1CurrentAccountGetRequest) (Account, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1CurrentAccountGetExecute(r ApiApiAccountsMgmtV1CurrentAccountGetRequest) (Account, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1CurrentAccountGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1CurrentAccountGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1CurrentAccountGetExecute was just called") } @@ -3122,12 +3122,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1CurrentAccountGetExecuteCalls() []s } // ApiAccountsMgmtV1ErrorsGet calls ApiAccountsMgmtV1ErrorsGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1ErrorsGet(ctx context.Context) ApiApiAccountsMgmtV1ErrorsGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1ErrorsGet(ctx _context.Context) ApiApiAccountsMgmtV1ErrorsGetRequest { if mock.ApiAccountsMgmtV1ErrorsGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1ErrorsGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1ErrorsGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -3141,10 +3141,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1ErrorsGet(ctx context.Context) ApiA // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1ErrorsGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1ErrorsGetCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1ErrorsGet.RLock() calls = mock.calls.ApiAccountsMgmtV1ErrorsGet @@ -3153,7 +3153,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1ErrorsGetCalls() []struct { } // ApiAccountsMgmtV1ErrorsGetExecute calls ApiAccountsMgmtV1ErrorsGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1ErrorsGetExecute(r ApiApiAccountsMgmtV1ErrorsGetRequest) (ErrorList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1ErrorsGetExecute(r ApiApiAccountsMgmtV1ErrorsGetRequest) (ErrorList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1ErrorsGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1ErrorsGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1ErrorsGetExecute was just called") } @@ -3184,12 +3184,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1ErrorsGetExecuteCalls() []struct { } // ApiAccountsMgmtV1ErrorsIdGet calls ApiAccountsMgmtV1ErrorsIdGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1ErrorsIdGet(ctx context.Context, id string) ApiApiAccountsMgmtV1ErrorsIdGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1ErrorsIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1ErrorsIdGetRequest { if mock.ApiAccountsMgmtV1ErrorsIdGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1ErrorsIdGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1ErrorsIdGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -3205,11 +3205,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1ErrorsIdGet(ctx context.Context, id // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1ErrorsIdGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1ErrorsIdGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1ErrorsIdGet.RLock() @@ -3219,7 +3219,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1ErrorsIdGetCalls() []struct { } // ApiAccountsMgmtV1ErrorsIdGetExecute calls ApiAccountsMgmtV1ErrorsIdGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1ErrorsIdGetExecute(r ApiApiAccountsMgmtV1ErrorsIdGetRequest) (Error, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1ErrorsIdGetExecute(r ApiApiAccountsMgmtV1ErrorsIdGetRequest) (Error, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1ErrorsIdGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1ErrorsIdGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1ErrorsIdGetExecute was just called") } @@ -3250,12 +3250,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1ErrorsIdGetExecuteCalls() []struct } // ApiAccountsMgmtV1FeatureTogglesIdQueryPost calls ApiAccountsMgmtV1FeatureTogglesIdQueryPostFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1FeatureTogglesIdQueryPost(ctx context.Context, id string) ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1FeatureTogglesIdQueryPost(ctx _context.Context, id string) ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest { if mock.ApiAccountsMgmtV1FeatureTogglesIdQueryPostFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1FeatureTogglesIdQueryPostFunc: method is nil but DefaultApi.ApiAccountsMgmtV1FeatureTogglesIdQueryPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -3271,11 +3271,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1FeatureTogglesIdQueryPost(ctx conte // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1FeatureTogglesIdQueryPostCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1FeatureTogglesIdQueryPostCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1FeatureTogglesIdQueryPost.RLock() @@ -3285,7 +3285,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1FeatureTogglesIdQueryPostCalls() [] } // ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecute calls ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecute(r ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest) (FeatureToggle, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecute(r ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest) (FeatureToggle, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecute was just called") } @@ -3316,12 +3316,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecuteCal } // ApiAccountsMgmtV1LabelsGet calls ApiAccountsMgmtV1LabelsGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1LabelsGet(ctx context.Context) ApiApiAccountsMgmtV1LabelsGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1LabelsGet(ctx _context.Context) ApiApiAccountsMgmtV1LabelsGetRequest { if mock.ApiAccountsMgmtV1LabelsGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1LabelsGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1LabelsGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -3335,10 +3335,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1LabelsGet(ctx context.Context) ApiA // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1LabelsGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1LabelsGetCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1LabelsGet.RLock() calls = mock.calls.ApiAccountsMgmtV1LabelsGet @@ -3347,7 +3347,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1LabelsGetCalls() []struct { } // ApiAccountsMgmtV1LabelsGetExecute calls ApiAccountsMgmtV1LabelsGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1LabelsGetExecute(r ApiApiAccountsMgmtV1LabelsGetRequest) (LabelList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1LabelsGetExecute(r ApiApiAccountsMgmtV1LabelsGetRequest) (LabelList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1LabelsGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1LabelsGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1LabelsGetExecute was just called") } @@ -3378,12 +3378,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1LabelsGetExecuteCalls() []struct { } // ApiAccountsMgmtV1MetricsGet calls ApiAccountsMgmtV1MetricsGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1MetricsGet(ctx context.Context) ApiApiAccountsMgmtV1MetricsGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1MetricsGet(ctx _context.Context) ApiApiAccountsMgmtV1MetricsGetRequest { if mock.ApiAccountsMgmtV1MetricsGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1MetricsGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1MetricsGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -3397,10 +3397,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1MetricsGet(ctx context.Context) Api // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1MetricsGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1MetricsGetCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1MetricsGet.RLock() calls = mock.calls.ApiAccountsMgmtV1MetricsGet @@ -3409,7 +3409,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1MetricsGetCalls() []struct { } // ApiAccountsMgmtV1MetricsGetExecute calls ApiAccountsMgmtV1MetricsGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1MetricsGetExecute(r ApiApiAccountsMgmtV1MetricsGetRequest) (MetricsList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1MetricsGetExecute(r ApiApiAccountsMgmtV1MetricsGetRequest) (MetricsList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1MetricsGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1MetricsGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1MetricsGetExecute was just called") } @@ -3440,12 +3440,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1MetricsGetExecuteCalls() []struct { } // ApiAccountsMgmtV1NotifyPost calls ApiAccountsMgmtV1NotifyPostFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1NotifyPost(ctx context.Context) ApiApiAccountsMgmtV1NotifyPostRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1NotifyPost(ctx _context.Context) ApiApiAccountsMgmtV1NotifyPostRequest { if mock.ApiAccountsMgmtV1NotifyPostFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1NotifyPostFunc: method is nil but DefaultApi.ApiAccountsMgmtV1NotifyPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -3459,10 +3459,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1NotifyPost(ctx context.Context) Api // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1NotifyPostCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1NotifyPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1NotifyPost.RLock() calls = mock.calls.ApiAccountsMgmtV1NotifyPost @@ -3471,7 +3471,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1NotifyPostCalls() []struct { } // ApiAccountsMgmtV1NotifyPostExecute calls ApiAccountsMgmtV1NotifyPostExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1NotifyPostExecute(r ApiApiAccountsMgmtV1NotifyPostRequest) (*http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1NotifyPostExecute(r ApiApiAccountsMgmtV1NotifyPostRequest) (*_nethttp.Response, error) { if mock.ApiAccountsMgmtV1NotifyPostExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1NotifyPostExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1NotifyPostExecute was just called") } @@ -3502,12 +3502,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1NotifyPostExecuteCalls() []struct { } // ApiAccountsMgmtV1OrganizationsGet calls ApiAccountsMgmtV1OrganizationsGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsGet(ctx context.Context) ApiApiAccountsMgmtV1OrganizationsGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsGet(ctx _context.Context) ApiApiAccountsMgmtV1OrganizationsGetRequest { if mock.ApiAccountsMgmtV1OrganizationsGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -3521,10 +3521,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsGet(ctx context.Contex // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1OrganizationsGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsGetCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1OrganizationsGet.RLock() calls = mock.calls.ApiAccountsMgmtV1OrganizationsGet @@ -3533,7 +3533,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsGetCalls() []struct { } // ApiAccountsMgmtV1OrganizationsGetExecute calls ApiAccountsMgmtV1OrganizationsGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsGetExecute(r ApiApiAccountsMgmtV1OrganizationsGetRequest) (OrganizationList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsGetExecute(r ApiApiAccountsMgmtV1OrganizationsGetRequest) (OrganizationList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1OrganizationsGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsGetExecute was just called") } @@ -3564,12 +3564,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsGetExecuteCalls() []st } // ApiAccountsMgmtV1OrganizationsIdGet calls ApiAccountsMgmtV1OrganizationsIdGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdGet(ctx context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdGetRequest { if mock.ApiAccountsMgmtV1OrganizationsIdGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsIdGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsIdGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -3585,11 +3585,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdGet(ctx context.Cont // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1OrganizationsIdGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1OrganizationsIdGet.RLock() @@ -3599,7 +3599,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdGetCalls() []struct } // ApiAccountsMgmtV1OrganizationsIdGetExecute calls ApiAccountsMgmtV1OrganizationsIdGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdGetRequest) (Organization, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdGetRequest) (Organization, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1OrganizationsIdGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsIdGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsIdGetExecute was just called") } @@ -3630,12 +3630,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdGetExecuteCalls() [] } // ApiAccountsMgmtV1OrganizationsIdLabelsGet calls ApiAccountsMgmtV1OrganizationsIdLabelsGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsGet(ctx context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest { if mock.ApiAccountsMgmtV1OrganizationsIdLabelsGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsIdLabelsGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -3651,11 +3651,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsGet(ctx contex // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1OrganizationsIdLabelsGet.RLock() @@ -3665,7 +3665,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsGetCalls() []s } // ApiAccountsMgmtV1OrganizationsIdLabelsGetExecute calls ApiAccountsMgmtV1OrganizationsIdLabelsGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) (LabelList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1OrganizationsIdLabelsGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsIdLabelsGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsGetExecute was just called") } @@ -3696,12 +3696,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsGetExecuteCall } // ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete calls ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest { if mock.ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string Key string }{ @@ -3719,12 +3719,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete(ctx // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string Key string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string Key string } @@ -3735,7 +3735,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteCalls } // ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecute calls ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest) (*http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) { if mock.ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecute was just called") } @@ -3766,12 +3766,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecu } // ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet calls ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest { if mock.ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string Key string }{ @@ -3789,12 +3789,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet(ctx con // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string Key string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string Key string } @@ -3805,7 +3805,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetCalls() } // ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecute calls ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest) (Label, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecute was just called") } @@ -3836,12 +3836,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecuteC } // ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch calls ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest { if mock.ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string Key string }{ @@ -3859,12 +3859,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch(ctx c // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string Key string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string Key string } @@ -3875,7 +3875,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchCalls( } // ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecute calls ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest) (Label, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecute was just called") } @@ -3906,12 +3906,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecut } // ApiAccountsMgmtV1OrganizationsIdLabelsPost calls ApiAccountsMgmtV1OrganizationsIdLabelsPostFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsPost(ctx context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsPost(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest { if mock.ApiAccountsMgmtV1OrganizationsIdLabelsPostFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsIdLabelsPostFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -3927,11 +3927,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsPost(ctx conte // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsPostCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsPostCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1OrganizationsIdLabelsPost.RLock() @@ -3941,7 +3941,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsPostCalls() [] } // ApiAccountsMgmtV1OrganizationsIdLabelsPostExecute calls ApiAccountsMgmtV1OrganizationsIdLabelsPostExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsPostExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest) (Label, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsPostExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest) (Label, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1OrganizationsIdLabelsPostExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsIdLabelsPostExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsPostExecute was just called") } @@ -3972,12 +3972,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdLabelsPostExecuteCal } // ApiAccountsMgmtV1OrganizationsIdPatch calls ApiAccountsMgmtV1OrganizationsIdPatchFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdPatch(ctx context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdPatchRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdPatchRequest { if mock.ApiAccountsMgmtV1OrganizationsIdPatchFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsIdPatchFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsIdPatch was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -3993,11 +3993,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdPatch(ctx context.Co // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1OrganizationsIdPatchCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdPatchCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1OrganizationsIdPatch.RLock() @@ -4007,7 +4007,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdPatchCalls() []struc } // ApiAccountsMgmtV1OrganizationsIdPatchExecute calls ApiAccountsMgmtV1OrganizationsIdPatchExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdPatchExecute(r ApiApiAccountsMgmtV1OrganizationsIdPatchRequest) (Organization, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdPatchExecute(r ApiApiAccountsMgmtV1OrganizationsIdPatchRequest) (Organization, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1OrganizationsIdPatchExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsIdPatchExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsIdPatchExecute was just called") } @@ -4038,12 +4038,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdPatchExecuteCalls() } // ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet calls ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet(ctx context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest { if mock.ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -4059,11 +4059,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet( // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet.RLock() @@ -4073,7 +4073,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetC } // ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecute calls ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest) (Summary, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest) (Summary, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecute was just called") } @@ -4104,12 +4104,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetE } // ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet calls ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(ctx context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest { if mock.ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context OrgId string }{ Ctx: ctx, @@ -4125,11 +4125,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(ctx // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetCalls() []struct { - Ctx context.Context + Ctx _context.Context OrgId string } { var calls []struct { - Ctx context.Context + Ctx _context.Context OrgId string } mock.lockApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet.RLock() @@ -4139,7 +4139,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetCalls } // ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecute calls ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) (QuotaCostList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) (QuotaCostList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecute was just called") } @@ -4170,12 +4170,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecu } // ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet calls ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet(ctx context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest { if mock.ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context OrgId string }{ Ctx: ctx, @@ -4191,11 +4191,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet(c // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetCalls() []struct { - Ctx context.Context + Ctx _context.Context OrgId string } { var calls []struct { - Ctx context.Context + Ctx _context.Context OrgId string } mock.lockApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGet.RLock() @@ -4205,7 +4205,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetCa } // ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecute calls ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest) (QuotaSummaryList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetRequest) (QuotaSummaryList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetExecute was just called") } @@ -4236,12 +4236,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdQuotaSummaryGetEx } // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet calls ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet(ctx context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest { if mock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context OrgId string }{ Ctx: ctx, @@ -4257,11 +4257,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet( // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetCalls() []struct { - Ctx context.Context + Ctx _context.Context OrgId string } { var calls []struct { - Ctx context.Context + Ctx _context.Context OrgId string } mock.lockApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet.RLock() @@ -4271,7 +4271,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetC } // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecute calls ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) (ResourceQuotaList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) (ResourceQuotaList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecute was just called") } @@ -4302,12 +4302,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetE } // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost calls ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost(ctx context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest { if mock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context OrgId string }{ Ctx: ctx, @@ -4323,11 +4323,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostCalls() []struct { - Ctx context.Context + Ctx _context.Context OrgId string } { var calls []struct { - Ctx context.Context + Ctx _context.Context OrgId string } mock.lockApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost.RLock() @@ -4337,7 +4337,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost } // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecute calls ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest) (ResourceQuota, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest) (ResourceQuota, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecute was just called") } @@ -4368,12 +4368,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost } // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete calls ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete(ctx context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete(ctx _context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest { if mock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context OrgId string QuotaId string }{ @@ -4391,12 +4391,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuot // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteCalls() []struct { - Ctx context.Context + Ctx _context.Context OrgId string QuotaId string } { var calls []struct { - Ctx context.Context + Ctx _context.Context OrgId string QuotaId string } @@ -4407,7 +4407,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuot } // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecute calls ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest) (*http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest) (*_nethttp.Response, error) { if mock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecute was just called") } @@ -4438,12 +4438,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuot } // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet calls ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet(ctx context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet(ctx _context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest { if mock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context OrgId string QuotaId string }{ @@ -4461,12 +4461,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuot // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetCalls() []struct { - Ctx context.Context + Ctx _context.Context OrgId string QuotaId string } { var calls []struct { - Ctx context.Context + Ctx _context.Context OrgId string QuotaId string } @@ -4477,7 +4477,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuot } // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecute calls ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest) (ResourceQuota, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest) (ResourceQuota, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecute was just called") } @@ -4508,12 +4508,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuot } // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch calls ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch(ctx context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch(ctx _context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest { if mock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context OrgId string QuotaId string }{ @@ -4531,12 +4531,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuot // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchCalls() []struct { - Ctx context.Context + Ctx _context.Context OrgId string QuotaId string } { var calls []struct { - Ctx context.Context + Ctx _context.Context OrgId string QuotaId string } @@ -4547,7 +4547,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuot } // ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecute calls ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest) (ResourceQuota, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest) (ResourceQuota, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecute was just called") } @@ -4578,12 +4578,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuot } // ApiAccountsMgmtV1OrganizationsPost calls ApiAccountsMgmtV1OrganizationsPostFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsPost(ctx context.Context) ApiApiAccountsMgmtV1OrganizationsPostRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsPost(ctx _context.Context) ApiApiAccountsMgmtV1OrganizationsPostRequest { if mock.ApiAccountsMgmtV1OrganizationsPostFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsPostFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -4597,10 +4597,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsPost(ctx context.Conte // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1OrganizationsPostCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1OrganizationsPost.RLock() calls = mock.calls.ApiAccountsMgmtV1OrganizationsPost @@ -4609,7 +4609,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsPostCalls() []struct { } // ApiAccountsMgmtV1OrganizationsPostExecute calls ApiAccountsMgmtV1OrganizationsPostExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsPostExecute(r ApiApiAccountsMgmtV1OrganizationsPostRequest) (Organization, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsPostExecute(r ApiApiAccountsMgmtV1OrganizationsPostRequest) (Organization, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1OrganizationsPostExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1OrganizationsPostExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1OrganizationsPostExecute was just called") } @@ -4640,12 +4640,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1OrganizationsPostExecuteCalls() []s } // ApiAccountsMgmtV1PlansGet calls ApiAccountsMgmtV1PlansGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1PlansGet(ctx context.Context) ApiApiAccountsMgmtV1PlansGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1PlansGet(ctx _context.Context) ApiApiAccountsMgmtV1PlansGetRequest { if mock.ApiAccountsMgmtV1PlansGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1PlansGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1PlansGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -4659,10 +4659,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1PlansGet(ctx context.Context) ApiAp // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1PlansGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1PlansGetCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1PlansGet.RLock() calls = mock.calls.ApiAccountsMgmtV1PlansGet @@ -4671,7 +4671,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1PlansGetCalls() []struct { } // ApiAccountsMgmtV1PlansGetExecute calls ApiAccountsMgmtV1PlansGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1PlansGetExecute(r ApiApiAccountsMgmtV1PlansGetRequest) (PlanList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1PlansGetExecute(r ApiApiAccountsMgmtV1PlansGetRequest) (PlanList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1PlansGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1PlansGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1PlansGetExecute was just called") } @@ -4702,12 +4702,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1PlansGetExecuteCalls() []struct { } // ApiAccountsMgmtV1PlansIdGet calls ApiAccountsMgmtV1PlansIdGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1PlansIdGet(ctx context.Context, id string) ApiApiAccountsMgmtV1PlansIdGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1PlansIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1PlansIdGetRequest { if mock.ApiAccountsMgmtV1PlansIdGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1PlansIdGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1PlansIdGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -4723,11 +4723,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1PlansIdGet(ctx context.Context, id // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1PlansIdGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1PlansIdGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1PlansIdGet.RLock() @@ -4737,7 +4737,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1PlansIdGetCalls() []struct { } // ApiAccountsMgmtV1PlansIdGetExecute calls ApiAccountsMgmtV1PlansIdGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1PlansIdGetExecute(r ApiApiAccountsMgmtV1PlansIdGetRequest) (Plan, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1PlansIdGetExecute(r ApiApiAccountsMgmtV1PlansIdGetRequest) (Plan, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1PlansIdGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1PlansIdGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1PlansIdGetExecute was just called") } @@ -4768,12 +4768,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1PlansIdGetExecuteCalls() []struct { } // ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete calls ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete(ctx context.Context, externalResourceId string) ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete(ctx _context.Context, externalResourceId string) ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest { if mock.ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ExternalResourceId string }{ Ctx: ctx, @@ -4789,11 +4789,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteCalls() []struct { - Ctx context.Context + Ctx _context.Context ExternalResourceId string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ExternalResourceId string } mock.lockApiAccountsMgmtV1PullSecretsExternalResourceIdDelete.RLock() @@ -4803,7 +4803,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete } // ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecute calls ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecute(r ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest) (*http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecute(r ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest) (*_nethttp.Response, error) { if mock.ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecute was just called") } @@ -4834,12 +4834,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete } // ApiAccountsMgmtV1PullSecretsPost calls ApiAccountsMgmtV1PullSecretsPostFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1PullSecretsPost(ctx context.Context) ApiApiAccountsMgmtV1PullSecretsPostRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1PullSecretsPost(ctx _context.Context) ApiApiAccountsMgmtV1PullSecretsPostRequest { if mock.ApiAccountsMgmtV1PullSecretsPostFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1PullSecretsPostFunc: method is nil but DefaultApi.ApiAccountsMgmtV1PullSecretsPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -4853,10 +4853,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1PullSecretsPost(ctx context.Context // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1PullSecretsPostCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1PullSecretsPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1PullSecretsPost.RLock() calls = mock.calls.ApiAccountsMgmtV1PullSecretsPost @@ -4865,7 +4865,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1PullSecretsPostCalls() []struct { } // ApiAccountsMgmtV1PullSecretsPostExecute calls ApiAccountsMgmtV1PullSecretsPostExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1PullSecretsPostExecute(r ApiApiAccountsMgmtV1PullSecretsPostRequest) (AccessTokenCfg, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1PullSecretsPostExecute(r ApiApiAccountsMgmtV1PullSecretsPostRequest) (AccessTokenCfg, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1PullSecretsPostExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1PullSecretsPostExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1PullSecretsPostExecute was just called") } @@ -4896,12 +4896,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1PullSecretsPostExecuteCalls() []str } // ApiAccountsMgmtV1RegistriesGet calls ApiAccountsMgmtV1RegistriesGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistriesGet(ctx context.Context) ApiApiAccountsMgmtV1RegistriesGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistriesGet(ctx _context.Context) ApiApiAccountsMgmtV1RegistriesGetRequest { if mock.ApiAccountsMgmtV1RegistriesGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RegistriesGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RegistriesGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -4915,10 +4915,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistriesGet(ctx context.Context) // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1RegistriesGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistriesGetCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1RegistriesGet.RLock() calls = mock.calls.ApiAccountsMgmtV1RegistriesGet @@ -4927,7 +4927,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistriesGetCalls() []struct { } // ApiAccountsMgmtV1RegistriesGetExecute calls ApiAccountsMgmtV1RegistriesGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistriesGetExecute(r ApiApiAccountsMgmtV1RegistriesGetRequest) (RegistryList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistriesGetExecute(r ApiApiAccountsMgmtV1RegistriesGetRequest) (RegistryList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1RegistriesGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RegistriesGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RegistriesGetExecute was just called") } @@ -4958,12 +4958,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistriesGetExecuteCalls() []struc } // ApiAccountsMgmtV1RegistriesIdGet calls ApiAccountsMgmtV1RegistriesIdGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistriesIdGet(ctx context.Context, id string) ApiApiAccountsMgmtV1RegistriesIdGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistriesIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistriesIdGetRequest { if mock.ApiAccountsMgmtV1RegistriesIdGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RegistriesIdGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RegistriesIdGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -4979,11 +4979,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistriesIdGet(ctx context.Context // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1RegistriesIdGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistriesIdGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1RegistriesIdGet.RLock() @@ -4993,7 +4993,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistriesIdGetCalls() []struct { } // ApiAccountsMgmtV1RegistriesIdGetExecute calls ApiAccountsMgmtV1RegistriesIdGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistriesIdGetExecute(r ApiApiAccountsMgmtV1RegistriesIdGetRequest) (Registry, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistriesIdGetExecute(r ApiApiAccountsMgmtV1RegistriesIdGetRequest) (Registry, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1RegistriesIdGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RegistriesIdGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RegistriesIdGetExecute was just called") } @@ -5024,12 +5024,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistriesIdGetExecuteCalls() []str } // ApiAccountsMgmtV1RegistryCredentialsGet calls ApiAccountsMgmtV1RegistryCredentialsGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsGet(ctx context.Context) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsGet(ctx _context.Context) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest { if mock.ApiAccountsMgmtV1RegistryCredentialsGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RegistryCredentialsGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RegistryCredentialsGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -5043,10 +5043,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsGet(ctx context. // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1RegistryCredentialsGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsGetCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1RegistryCredentialsGet.RLock() calls = mock.calls.ApiAccountsMgmtV1RegistryCredentialsGet @@ -5055,7 +5055,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsGetCalls() []str } // ApiAccountsMgmtV1RegistryCredentialsGetExecute calls ApiAccountsMgmtV1RegistryCredentialsGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsGetExecute(r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) (RegistryCredentialList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsGetExecute(r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) (RegistryCredentialList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1RegistryCredentialsGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RegistryCredentialsGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RegistryCredentialsGetExecute was just called") } @@ -5086,12 +5086,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsGetExecuteCalls( } // ApiAccountsMgmtV1RegistryCredentialsIdDelete calls ApiAccountsMgmtV1RegistryCredentialsIdDeleteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdDelete(ctx context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdDelete(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest { if mock.ApiAccountsMgmtV1RegistryCredentialsIdDeleteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RegistryCredentialsIdDeleteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RegistryCredentialsIdDelete was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -5107,11 +5107,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdDelete(ctx con // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1RegistryCredentialsIdDeleteCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdDeleteCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1RegistryCredentialsIdDelete.RLock() @@ -5121,7 +5121,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdDeleteCalls() } // ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecute calls ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecute(r ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest) (*http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecute(r ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest) (*_nethttp.Response, error) { if mock.ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecute was just called") } @@ -5152,12 +5152,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecuteC } // ApiAccountsMgmtV1RegistryCredentialsIdGet calls ApiAccountsMgmtV1RegistryCredentialsIdGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdGet(ctx context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest { if mock.ApiAccountsMgmtV1RegistryCredentialsIdGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RegistryCredentialsIdGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RegistryCredentialsIdGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -5173,11 +5173,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdGet(ctx contex // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1RegistryCredentialsIdGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1RegistryCredentialsIdGet.RLock() @@ -5187,7 +5187,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdGetCalls() []s } // ApiAccountsMgmtV1RegistryCredentialsIdGetExecute calls ApiAccountsMgmtV1RegistryCredentialsIdGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdGetExecute(r ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest) (RegistryCredential, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdGetExecute(r ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest) (RegistryCredential, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1RegistryCredentialsIdGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RegistryCredentialsIdGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RegistryCredentialsIdGetExecute was just called") } @@ -5218,12 +5218,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdGetExecuteCall } // ApiAccountsMgmtV1RegistryCredentialsIdPatch calls ApiAccountsMgmtV1RegistryCredentialsIdPatchFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdPatch(ctx context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest { if mock.ApiAccountsMgmtV1RegistryCredentialsIdPatchFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RegistryCredentialsIdPatchFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RegistryCredentialsIdPatch was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -5239,11 +5239,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdPatch(ctx cont // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1RegistryCredentialsIdPatchCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdPatchCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1RegistryCredentialsIdPatch.RLock() @@ -5253,7 +5253,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdPatchCalls() [ } // ApiAccountsMgmtV1RegistryCredentialsIdPatchExecute calls ApiAccountsMgmtV1RegistryCredentialsIdPatchExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdPatchExecute(r ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest) (RegistryCredential, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdPatchExecute(r ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest) (RegistryCredential, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1RegistryCredentialsIdPatchExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RegistryCredentialsIdPatchExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RegistryCredentialsIdPatchExecute was just called") } @@ -5284,12 +5284,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsIdPatchExecuteCa } // ApiAccountsMgmtV1RegistryCredentialsPost calls ApiAccountsMgmtV1RegistryCredentialsPostFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsPost(ctx context.Context) ApiApiAccountsMgmtV1RegistryCredentialsPostRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsPost(ctx _context.Context) ApiApiAccountsMgmtV1RegistryCredentialsPostRequest { if mock.ApiAccountsMgmtV1RegistryCredentialsPostFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RegistryCredentialsPostFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RegistryCredentialsPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -5303,10 +5303,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsPost(ctx context // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1RegistryCredentialsPostCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1RegistryCredentialsPost.RLock() calls = mock.calls.ApiAccountsMgmtV1RegistryCredentialsPost @@ -5315,7 +5315,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsPostCalls() []st } // ApiAccountsMgmtV1RegistryCredentialsPostExecute calls ApiAccountsMgmtV1RegistryCredentialsPostExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsPostExecute(r ApiApiAccountsMgmtV1RegistryCredentialsPostRequest) (RegistryCredential, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsPostExecute(r ApiApiAccountsMgmtV1RegistryCredentialsPostRequest) (RegistryCredential, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1RegistryCredentialsPostExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RegistryCredentialsPostExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RegistryCredentialsPostExecute was just called") } @@ -5346,12 +5346,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RegistryCredentialsPostExecuteCalls } // ApiAccountsMgmtV1ReservedResourcesGet calls ApiAccountsMgmtV1ReservedResourcesGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1ReservedResourcesGet(ctx context.Context) ApiApiAccountsMgmtV1ReservedResourcesGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1ReservedResourcesGet(ctx _context.Context) ApiApiAccountsMgmtV1ReservedResourcesGetRequest { if mock.ApiAccountsMgmtV1ReservedResourcesGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1ReservedResourcesGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1ReservedResourcesGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -5365,10 +5365,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1ReservedResourcesGet(ctx context.Co // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1ReservedResourcesGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1ReservedResourcesGetCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1ReservedResourcesGet.RLock() calls = mock.calls.ApiAccountsMgmtV1ReservedResourcesGet @@ -5377,7 +5377,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1ReservedResourcesGetCalls() []struc } // ApiAccountsMgmtV1ReservedResourcesGetExecute calls ApiAccountsMgmtV1ReservedResourcesGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1ReservedResourcesGetExecute(r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) (ReservedResourceList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1ReservedResourcesGetExecute(r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) (ReservedResourceList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1ReservedResourcesGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1ReservedResourcesGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1ReservedResourcesGetExecute was just called") } @@ -5408,12 +5408,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1ReservedResourcesGetExecuteCalls() } // ApiAccountsMgmtV1ResourceQuotaGet calls ApiAccountsMgmtV1ResourceQuotaGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1ResourceQuotaGet(ctx context.Context) ApiApiAccountsMgmtV1ResourceQuotaGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1ResourceQuotaGet(ctx _context.Context) ApiApiAccountsMgmtV1ResourceQuotaGetRequest { if mock.ApiAccountsMgmtV1ResourceQuotaGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1ResourceQuotaGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1ResourceQuotaGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -5427,10 +5427,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1ResourceQuotaGet(ctx context.Contex // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1ResourceQuotaGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1ResourceQuotaGetCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1ResourceQuotaGet.RLock() calls = mock.calls.ApiAccountsMgmtV1ResourceQuotaGet @@ -5439,7 +5439,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1ResourceQuotaGetCalls() []struct { } // ApiAccountsMgmtV1ResourceQuotaGetExecute calls ApiAccountsMgmtV1ResourceQuotaGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1ResourceQuotaGetExecute(r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) (ResourceQuotaList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1ResourceQuotaGetExecute(r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) (ResourceQuotaList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1ResourceQuotaGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1ResourceQuotaGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1ResourceQuotaGetExecute was just called") } @@ -5470,12 +5470,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1ResourceQuotaGetExecuteCalls() []st } // ApiAccountsMgmtV1RoleBindingsGet calls ApiAccountsMgmtV1RoleBindingsGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsGet(ctx context.Context) ApiApiAccountsMgmtV1RoleBindingsGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsGet(ctx _context.Context) ApiApiAccountsMgmtV1RoleBindingsGetRequest { if mock.ApiAccountsMgmtV1RoleBindingsGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RoleBindingsGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RoleBindingsGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -5489,10 +5489,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsGet(ctx context.Context // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1RoleBindingsGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsGetCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1RoleBindingsGet.RLock() calls = mock.calls.ApiAccountsMgmtV1RoleBindingsGet @@ -5501,7 +5501,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsGetCalls() []struct { } // ApiAccountsMgmtV1RoleBindingsGetExecute calls ApiAccountsMgmtV1RoleBindingsGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsGetExecute(r ApiApiAccountsMgmtV1RoleBindingsGetRequest) (RoleBindingList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsGetExecute(r ApiApiAccountsMgmtV1RoleBindingsGetRequest) (RoleBindingList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1RoleBindingsGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RoleBindingsGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RoleBindingsGetExecute was just called") } @@ -5532,12 +5532,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsGetExecuteCalls() []str } // ApiAccountsMgmtV1RoleBindingsIdDelete calls ApiAccountsMgmtV1RoleBindingsIdDeleteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdDelete(ctx context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdDelete(ctx _context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest { if mock.ApiAccountsMgmtV1RoleBindingsIdDeleteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RoleBindingsIdDeleteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RoleBindingsIdDelete was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -5553,11 +5553,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdDelete(ctx context.Co // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1RoleBindingsIdDeleteCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdDeleteCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1RoleBindingsIdDelete.RLock() @@ -5567,7 +5567,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdDeleteCalls() []struc } // ApiAccountsMgmtV1RoleBindingsIdDeleteExecute calls ApiAccountsMgmtV1RoleBindingsIdDeleteExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdDeleteExecute(r ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest) (*http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdDeleteExecute(r ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest) (*_nethttp.Response, error) { if mock.ApiAccountsMgmtV1RoleBindingsIdDeleteExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RoleBindingsIdDeleteExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RoleBindingsIdDeleteExecute was just called") } @@ -5598,12 +5598,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdDeleteExecuteCalls() } // ApiAccountsMgmtV1RoleBindingsIdGet calls ApiAccountsMgmtV1RoleBindingsIdGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdGet(ctx context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdGetRequest { if mock.ApiAccountsMgmtV1RoleBindingsIdGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RoleBindingsIdGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RoleBindingsIdGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -5619,11 +5619,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdGet(ctx context.Conte // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1RoleBindingsIdGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1RoleBindingsIdGet.RLock() @@ -5633,7 +5633,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdGetCalls() []struct { } // ApiAccountsMgmtV1RoleBindingsIdGetExecute calls ApiAccountsMgmtV1RoleBindingsIdGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdGetExecute(r ApiApiAccountsMgmtV1RoleBindingsIdGetRequest) (RoleBinding, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdGetExecute(r ApiApiAccountsMgmtV1RoleBindingsIdGetRequest) (RoleBinding, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1RoleBindingsIdGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RoleBindingsIdGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RoleBindingsIdGetExecute was just called") } @@ -5664,12 +5664,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdGetExecuteCalls() []s } // ApiAccountsMgmtV1RoleBindingsIdPatch calls ApiAccountsMgmtV1RoleBindingsIdPatchFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdPatch(ctx context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest { if mock.ApiAccountsMgmtV1RoleBindingsIdPatchFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RoleBindingsIdPatchFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RoleBindingsIdPatch was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -5685,11 +5685,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdPatch(ctx context.Con // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1RoleBindingsIdPatchCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdPatchCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1RoleBindingsIdPatch.RLock() @@ -5699,7 +5699,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdPatchCalls() []struct } // ApiAccountsMgmtV1RoleBindingsIdPatchExecute calls ApiAccountsMgmtV1RoleBindingsIdPatchExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdPatchExecute(r ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest) (RoleBinding, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdPatchExecute(r ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest) (RoleBinding, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1RoleBindingsIdPatchExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RoleBindingsIdPatchExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RoleBindingsIdPatchExecute was just called") } @@ -5730,12 +5730,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsIdPatchExecuteCalls() [ } // ApiAccountsMgmtV1RoleBindingsPost calls ApiAccountsMgmtV1RoleBindingsPostFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsPost(ctx context.Context) ApiApiAccountsMgmtV1RoleBindingsPostRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsPost(ctx _context.Context) ApiApiAccountsMgmtV1RoleBindingsPostRequest { if mock.ApiAccountsMgmtV1RoleBindingsPostFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RoleBindingsPostFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RoleBindingsPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -5749,10 +5749,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsPost(ctx context.Contex // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1RoleBindingsPostCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1RoleBindingsPost.RLock() calls = mock.calls.ApiAccountsMgmtV1RoleBindingsPost @@ -5761,7 +5761,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsPostCalls() []struct { } // ApiAccountsMgmtV1RoleBindingsPostExecute calls ApiAccountsMgmtV1RoleBindingsPostExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsPostExecute(r ApiApiAccountsMgmtV1RoleBindingsPostRequest) (RoleBinding, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsPostExecute(r ApiApiAccountsMgmtV1RoleBindingsPostRequest) (RoleBinding, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1RoleBindingsPostExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RoleBindingsPostExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RoleBindingsPostExecute was just called") } @@ -5792,12 +5792,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RoleBindingsPostExecuteCalls() []st } // ApiAccountsMgmtV1RolesGet calls ApiAccountsMgmtV1RolesGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RolesGet(ctx context.Context) ApiApiAccountsMgmtV1RolesGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RolesGet(ctx _context.Context) ApiApiAccountsMgmtV1RolesGetRequest { if mock.ApiAccountsMgmtV1RolesGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RolesGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RolesGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -5811,10 +5811,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RolesGet(ctx context.Context) ApiAp // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1RolesGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1RolesGetCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1RolesGet.RLock() calls = mock.calls.ApiAccountsMgmtV1RolesGet @@ -5823,7 +5823,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RolesGetCalls() []struct { } // ApiAccountsMgmtV1RolesGetExecute calls ApiAccountsMgmtV1RolesGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RolesGetExecute(r ApiApiAccountsMgmtV1RolesGetRequest) (RoleList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RolesGetExecute(r ApiApiAccountsMgmtV1RolesGetRequest) (RoleList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1RolesGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RolesGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RolesGetExecute was just called") } @@ -5854,12 +5854,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RolesGetExecuteCalls() []struct { } // ApiAccountsMgmtV1RolesIdGet calls ApiAccountsMgmtV1RolesIdGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RolesIdGet(ctx context.Context, id string) ApiApiAccountsMgmtV1RolesIdGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RolesIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1RolesIdGetRequest { if mock.ApiAccountsMgmtV1RolesIdGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RolesIdGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RolesIdGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -5875,11 +5875,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RolesIdGet(ctx context.Context, id // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1RolesIdGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1RolesIdGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1RolesIdGet.RLock() @@ -5889,7 +5889,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RolesIdGetCalls() []struct { } // ApiAccountsMgmtV1RolesIdGetExecute calls ApiAccountsMgmtV1RolesIdGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1RolesIdGetExecute(r ApiApiAccountsMgmtV1RolesIdGetRequest) (Role, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1RolesIdGetExecute(r ApiApiAccountsMgmtV1RolesIdGetRequest) (Role, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1RolesIdGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1RolesIdGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1RolesIdGetExecute was just called") } @@ -5920,12 +5920,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1RolesIdGetExecuteCalls() []struct { } // ApiAccountsMgmtV1SkuRulesGet calls ApiAccountsMgmtV1SkuRulesGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SkuRulesGet(ctx context.Context) ApiApiAccountsMgmtV1SkuRulesGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SkuRulesGet(ctx _context.Context) ApiApiAccountsMgmtV1SkuRulesGetRequest { if mock.ApiAccountsMgmtV1SkuRulesGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SkuRulesGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SkuRulesGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -5939,10 +5939,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SkuRulesGet(ctx context.Context) Ap // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SkuRulesGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SkuRulesGetCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1SkuRulesGet.RLock() calls = mock.calls.ApiAccountsMgmtV1SkuRulesGet @@ -5951,7 +5951,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SkuRulesGetCalls() []struct { } // ApiAccountsMgmtV1SkuRulesGetExecute calls ApiAccountsMgmtV1SkuRulesGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SkuRulesGetExecute(r ApiApiAccountsMgmtV1SkuRulesGetRequest) (SkuRulesList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SkuRulesGetExecute(r ApiApiAccountsMgmtV1SkuRulesGetRequest) (SkuRulesList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SkuRulesGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SkuRulesGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SkuRulesGetExecute was just called") } @@ -5982,12 +5982,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SkuRulesGetExecuteCalls() []struct } // ApiAccountsMgmtV1SkuRulesIdGet calls ApiAccountsMgmtV1SkuRulesIdGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SkuRulesIdGet(ctx context.Context, id string) ApiApiAccountsMgmtV1SkuRulesIdGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SkuRulesIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1SkuRulesIdGetRequest { if mock.ApiAccountsMgmtV1SkuRulesIdGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SkuRulesIdGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SkuRulesIdGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -6003,11 +6003,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SkuRulesIdGet(ctx context.Context, // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SkuRulesIdGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SkuRulesIdGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1SkuRulesIdGet.RLock() @@ -6017,7 +6017,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SkuRulesIdGetCalls() []struct { } // ApiAccountsMgmtV1SkuRulesIdGetExecute calls ApiAccountsMgmtV1SkuRulesIdGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SkuRulesIdGetExecute(r ApiApiAccountsMgmtV1SkuRulesIdGetRequest) (SkuRules, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SkuRulesIdGetExecute(r ApiApiAccountsMgmtV1SkuRulesIdGetRequest) (SkuRules, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SkuRulesIdGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SkuRulesIdGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SkuRulesIdGetExecute was just called") } @@ -6048,12 +6048,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SkuRulesIdGetExecuteCalls() []struc } // ApiAccountsMgmtV1SkusGet calls ApiAccountsMgmtV1SkusGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SkusGet(ctx context.Context) ApiApiAccountsMgmtV1SkusGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SkusGet(ctx _context.Context) ApiApiAccountsMgmtV1SkusGetRequest { if mock.ApiAccountsMgmtV1SkusGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SkusGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SkusGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -6067,10 +6067,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SkusGet(ctx context.Context) ApiApi // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SkusGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SkusGetCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1SkusGet.RLock() calls = mock.calls.ApiAccountsMgmtV1SkusGet @@ -6079,7 +6079,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SkusGetCalls() []struct { } // ApiAccountsMgmtV1SkusGetExecute calls ApiAccountsMgmtV1SkusGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SkusGetExecute(r ApiApiAccountsMgmtV1SkusGetRequest) (SkuList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SkusGetExecute(r ApiApiAccountsMgmtV1SkusGetRequest) (SkuList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SkusGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SkusGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SkusGetExecute was just called") } @@ -6110,12 +6110,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SkusGetExecuteCalls() []struct { } // ApiAccountsMgmtV1SkusIdGet calls ApiAccountsMgmtV1SkusIdGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SkusIdGet(ctx context.Context, id string) ApiApiAccountsMgmtV1SkusIdGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SkusIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1SkusIdGetRequest { if mock.ApiAccountsMgmtV1SkusIdGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SkusIdGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SkusIdGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -6131,11 +6131,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SkusIdGet(ctx context.Context, id s // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SkusIdGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SkusIdGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1SkusIdGet.RLock() @@ -6145,7 +6145,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SkusIdGetCalls() []struct { } // ApiAccountsMgmtV1SkusIdGetExecute calls ApiAccountsMgmtV1SkusIdGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SkusIdGetExecute(r ApiApiAccountsMgmtV1SkusIdGetRequest) (SKU, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SkusIdGetExecute(r ApiApiAccountsMgmtV1SkusIdGetRequest) (SKU, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SkusIdGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SkusIdGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SkusIdGetExecute was just called") } @@ -6176,12 +6176,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SkusIdGetExecuteCalls() []struct { } // ApiAccountsMgmtV1SubscriptionsGet calls ApiAccountsMgmtV1SubscriptionsGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsGet(ctx context.Context) ApiApiAccountsMgmtV1SubscriptionsGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsGet(ctx _context.Context) ApiApiAccountsMgmtV1SubscriptionsGetRequest { if mock.ApiAccountsMgmtV1SubscriptionsGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -6195,10 +6195,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsGet(ctx context.Contex // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SubscriptionsGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsGetCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1SubscriptionsGet.RLock() calls = mock.calls.ApiAccountsMgmtV1SubscriptionsGet @@ -6207,7 +6207,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsGetCalls() []struct { } // ApiAccountsMgmtV1SubscriptionsGetExecute calls ApiAccountsMgmtV1SubscriptionsGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsGetRequest) (SubscriptionList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsGetRequest) (SubscriptionList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SubscriptionsGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsGetExecute was just called") } @@ -6238,12 +6238,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsGetExecuteCalls() []st } // ApiAccountsMgmtV1SubscriptionsIdDelete calls ApiAccountsMgmtV1SubscriptionsIdDeleteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdDelete(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdDelete(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest { if mock.ApiAccountsMgmtV1SubscriptionsIdDeleteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdDeleteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdDelete was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -6259,11 +6259,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdDelete(ctx context.C // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SubscriptionsIdDeleteCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdDeleteCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1SubscriptionsIdDelete.RLock() @@ -6273,7 +6273,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdDeleteCalls() []stru } // ApiAccountsMgmtV1SubscriptionsIdDeleteExecute calls ApiAccountsMgmtV1SubscriptionsIdDeleteExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest) (*http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest) (*_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SubscriptionsIdDeleteExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdDeleteExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdDeleteExecute was just called") } @@ -6304,12 +6304,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdDeleteExecuteCalls() } // ApiAccountsMgmtV1SubscriptionsIdGet calls ApiAccountsMgmtV1SubscriptionsIdGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdGet(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest { if mock.ApiAccountsMgmtV1SubscriptionsIdGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -6325,11 +6325,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdGet(ctx context.Cont // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SubscriptionsIdGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1SubscriptionsIdGet.RLock() @@ -6339,7 +6339,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdGetCalls() []struct } // ApiAccountsMgmtV1SubscriptionsIdGetExecute calls ApiAccountsMgmtV1SubscriptionsIdGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) (Subscription, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) (Subscription, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SubscriptionsIdGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdGetExecute was just called") } @@ -6370,12 +6370,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdGetExecuteCalls() [] } // ApiAccountsMgmtV1SubscriptionsIdLabelsGet calls ApiAccountsMgmtV1SubscriptionsIdLabelsGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsGet(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest { if mock.ApiAccountsMgmtV1SubscriptionsIdLabelsGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdLabelsGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -6391,11 +6391,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsGet(ctx contex // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1SubscriptionsIdLabelsGet.RLock() @@ -6405,7 +6405,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsGetCalls() []s } // ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecute calls ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) (LabelList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecute was just called") } @@ -6436,12 +6436,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecuteCall } // ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete calls ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest { if mock.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string Key string }{ @@ -6459,12 +6459,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete(ctx // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string Key string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string Key string } @@ -6475,7 +6475,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteCalls } // ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecute calls ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest) (*http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecute was just called") } @@ -6506,12 +6506,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecu } // ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet calls ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest { if mock.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string Key string }{ @@ -6529,12 +6529,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet(ctx con // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string Key string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string Key string } @@ -6545,7 +6545,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetCalls() } // ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecute calls ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest) (Label, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecute was just called") } @@ -6576,12 +6576,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecuteC } // ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch calls ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch(ctx context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest { if mock.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string Key string }{ @@ -6599,12 +6599,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch(ctx c // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string Key string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string Key string } @@ -6615,7 +6615,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchCalls( } // ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecute calls ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest) (Label, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecute was just called") } @@ -6646,12 +6646,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecut } // ApiAccountsMgmtV1SubscriptionsIdLabelsPost calls ApiAccountsMgmtV1SubscriptionsIdLabelsPostFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsPost(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsPost(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest { if mock.ApiAccountsMgmtV1SubscriptionsIdLabelsPostFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdLabelsPostFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -6667,11 +6667,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsPost(ctx conte // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsPostCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsPostCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1SubscriptionsIdLabelsPost.RLock() @@ -6681,7 +6681,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsPostCalls() [] } // ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecute calls ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest) (Label, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest) (Label, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecute was just called") } @@ -6712,12 +6712,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecuteCal } // ApiAccountsMgmtV1SubscriptionsIdNotifyPost calls ApiAccountsMgmtV1SubscriptionsIdNotifyPostFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdNotifyPost(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdNotifyPost(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest { if mock.ApiAccountsMgmtV1SubscriptionsIdNotifyPostFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdNotifyPostFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdNotifyPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -6733,11 +6733,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdNotifyPost(ctx conte // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SubscriptionsIdNotifyPostCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdNotifyPostCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1SubscriptionsIdNotifyPost.RLock() @@ -6747,7 +6747,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdNotifyPostCalls() [] } // ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecute calls ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecute(r ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest) (*http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecute(r ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest) (*_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecute was just called") } @@ -6778,12 +6778,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecuteCal } // ApiAccountsMgmtV1SubscriptionsIdPatch calls ApiAccountsMgmtV1SubscriptionsIdPatchFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdPatch(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest { if mock.ApiAccountsMgmtV1SubscriptionsIdPatchFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdPatchFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdPatch was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -6799,11 +6799,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdPatch(ctx context.Co // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SubscriptionsIdPatchCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdPatchCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1SubscriptionsIdPatch.RLock() @@ -6813,7 +6813,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdPatchCalls() []struc } // ApiAccountsMgmtV1SubscriptionsIdPatchExecute calls ApiAccountsMgmtV1SubscriptionsIdPatchExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdPatchExecute(r ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest) (Subscription, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdPatchExecute(r ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest) (Subscription, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SubscriptionsIdPatchExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdPatchExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdPatchExecute was just called") } @@ -6844,12 +6844,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdPatchExecuteCalls() } // ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet calls ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest { if mock.ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -6865,11 +6865,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet.RLock() @@ -6879,7 +6879,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet } // ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecute calls ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) (ReservedResourceList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) (ReservedResourceList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecute was just called") } @@ -6910,12 +6910,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet } // ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet calls ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet(ctx context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest { if mock.ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context ID string }{ Ctx: ctx, @@ -6931,11 +6931,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet(ctx // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetCalls() []struct { - Ctx context.Context + Ctx _context.Context ID string } { var calls []struct { - Ctx context.Context + Ctx _context.Context ID string } mock.lockApiAccountsMgmtV1SubscriptionsIdSupportCasesGet.RLock() @@ -6945,7 +6945,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetCalls } // ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecute calls ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest) (*http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest) (*_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecute was just called") } @@ -6976,12 +6976,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecu } // ApiAccountsMgmtV1SubscriptionsPost calls ApiAccountsMgmtV1SubscriptionsPostFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsPost(ctx context.Context) ApiApiAccountsMgmtV1SubscriptionsPostRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsPost(ctx _context.Context) ApiApiAccountsMgmtV1SubscriptionsPostRequest { if mock.ApiAccountsMgmtV1SubscriptionsPostFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsPostFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -6995,10 +6995,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsPost(ctx context.Conte // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SubscriptionsPostCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1SubscriptionsPost.RLock() calls = mock.calls.ApiAccountsMgmtV1SubscriptionsPost @@ -7007,7 +7007,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsPostCalls() []struct { } // ApiAccountsMgmtV1SubscriptionsPostExecute calls ApiAccountsMgmtV1SubscriptionsPostExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsPostRequest) (Subscription, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsPostRequest) (Subscription, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SubscriptionsPostExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsPostExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsPostExecute was just called") } @@ -7038,12 +7038,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsPostExecuteCalls() []s } // ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete calls ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete(ctx context.Context, subId string, accountId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete(ctx _context.Context, subId string, accountId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest { if mock.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context SubId string AccountId string }{ @@ -7061,12 +7061,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationConta // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteCalls() []struct { - Ctx context.Context + Ctx _context.Context SubId string AccountId string } { var calls []struct { - Ctx context.Context + Ctx _context.Context SubId string AccountId string } @@ -7077,7 +7077,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationConta } // ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecute calls ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest) (*http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest) (*_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecute was just called") } @@ -7108,12 +7108,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationConta } // ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet calls ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet(ctx context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet(ctx _context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { if mock.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context SubId string }{ Ctx: ctx, @@ -7129,11 +7129,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationConta // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetCalls() []struct { - Ctx context.Context + Ctx _context.Context SubId string } { var calls []struct { - Ctx context.Context + Ctx _context.Context SubId string } mock.lockApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet.RLock() @@ -7143,7 +7143,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationConta } // ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecute calls ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) (AccountList, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) (AccountList, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecute was just called") } @@ -7174,12 +7174,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationConta } // ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost calls ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost(ctx context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost(ctx _context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest { if mock.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context SubId string }{ Ctx: ctx, @@ -7195,11 +7195,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationConta // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostCalls() []struct { - Ctx context.Context + Ctx _context.Context SubId string } { var calls []struct { - Ctx context.Context + Ctx _context.Context SubId string } mock.lockApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost.RLock() @@ -7209,7 +7209,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationConta } // ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecute calls ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest) (Account, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest) (Account, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecute was just called") } @@ -7240,12 +7240,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdNotificationConta } // ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet calls ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet(ctx context.Context, subId string, reservedResourceId string) ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet(ctx _context.Context, subId string, reservedResourceId string) ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest { if mock.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context SubId string ReservedResourceId string }{ @@ -7263,12 +7263,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdReservedResources // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetCalls() []struct { - Ctx context.Context + Ctx _context.Context SubId string ReservedResourceId string } { var calls []struct { - Ctx context.Context + Ctx _context.Context SubId string ReservedResourceId string } @@ -7279,7 +7279,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdReservedResources } // ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecute calls ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest) (ReservedResource, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest) (ReservedResource, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecute was just called") } @@ -7310,12 +7310,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SubscriptionsSubIdReservedResources } // ApiAccountsMgmtV1SupportCasesCaseIdDelete calls ApiAccountsMgmtV1SupportCasesCaseIdDeleteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SupportCasesCaseIdDelete(ctx context.Context, caseId string) ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SupportCasesCaseIdDelete(ctx _context.Context, caseId string) ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest { if mock.ApiAccountsMgmtV1SupportCasesCaseIdDeleteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SupportCasesCaseIdDeleteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SupportCasesCaseIdDelete was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context CaseId string }{ Ctx: ctx, @@ -7331,11 +7331,11 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SupportCasesCaseIdDelete(ctx contex // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SupportCasesCaseIdDeleteCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SupportCasesCaseIdDeleteCalls() []struct { - Ctx context.Context + Ctx _context.Context CaseId string } { var calls []struct { - Ctx context.Context + Ctx _context.Context CaseId string } mock.lockApiAccountsMgmtV1SupportCasesCaseIdDelete.RLock() @@ -7345,7 +7345,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SupportCasesCaseIdDeleteCalls() []s } // ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecute calls ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecute(r ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest) (*http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecute(r ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest) (*_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecute was just called") } @@ -7376,12 +7376,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecuteCall } // ApiAccountsMgmtV1SupportCasesPost calls ApiAccountsMgmtV1SupportCasesPostFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SupportCasesPost(ctx context.Context) ApiApiAccountsMgmtV1SupportCasesPostRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SupportCasesPost(ctx _context.Context) ApiApiAccountsMgmtV1SupportCasesPostRequest { if mock.ApiAccountsMgmtV1SupportCasesPostFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SupportCasesPostFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SupportCasesPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -7395,10 +7395,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SupportCasesPost(ctx context.Contex // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1SupportCasesPostCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1SupportCasesPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1SupportCasesPost.RLock() calls = mock.calls.ApiAccountsMgmtV1SupportCasesPost @@ -7407,7 +7407,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SupportCasesPostCalls() []struct { } // ApiAccountsMgmtV1SupportCasesPostExecute calls ApiAccountsMgmtV1SupportCasesPostExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1SupportCasesPostExecute(r ApiApiAccountsMgmtV1SupportCasesPostRequest) (SupportCasesCreatedResponse, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1SupportCasesPostExecute(r ApiApiAccountsMgmtV1SupportCasesPostRequest) (SupportCasesCreatedResponse, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1SupportCasesPostExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1SupportCasesPostExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1SupportCasesPostExecute was just called") } @@ -7438,12 +7438,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1SupportCasesPostExecuteCalls() []st } // ApiAccountsMgmtV1TokenAuthorizationPost calls ApiAccountsMgmtV1TokenAuthorizationPostFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1TokenAuthorizationPost(ctx context.Context) ApiApiAccountsMgmtV1TokenAuthorizationPostRequest { +func (mock *DefaultApiMock) ApiAccountsMgmtV1TokenAuthorizationPost(ctx _context.Context) ApiApiAccountsMgmtV1TokenAuthorizationPostRequest { if mock.ApiAccountsMgmtV1TokenAuthorizationPostFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1TokenAuthorizationPostFunc: method is nil but DefaultApi.ApiAccountsMgmtV1TokenAuthorizationPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -7457,10 +7457,10 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1TokenAuthorizationPost(ctx context. // Check the length with: // len(mockedDefaultApi.ApiAccountsMgmtV1TokenAuthorizationPostCalls()) func (mock *DefaultApiMock) ApiAccountsMgmtV1TokenAuthorizationPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAccountsMgmtV1TokenAuthorizationPost.RLock() calls = mock.calls.ApiAccountsMgmtV1TokenAuthorizationPost @@ -7469,7 +7469,7 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1TokenAuthorizationPostCalls() []str } // ApiAccountsMgmtV1TokenAuthorizationPostExecute calls ApiAccountsMgmtV1TokenAuthorizationPostExecuteFunc. -func (mock *DefaultApiMock) ApiAccountsMgmtV1TokenAuthorizationPostExecute(r ApiApiAccountsMgmtV1TokenAuthorizationPostRequest) (TokenAuthorizationResponse, *http.Response, error) { +func (mock *DefaultApiMock) ApiAccountsMgmtV1TokenAuthorizationPostExecute(r ApiApiAccountsMgmtV1TokenAuthorizationPostRequest) (TokenAuthorizationResponse, *_nethttp.Response, error) { if mock.ApiAccountsMgmtV1TokenAuthorizationPostExecuteFunc == nil { panic("DefaultApiMock.ApiAccountsMgmtV1TokenAuthorizationPostExecuteFunc: method is nil but DefaultApi.ApiAccountsMgmtV1TokenAuthorizationPostExecute was just called") } @@ -7500,12 +7500,12 @@ func (mock *DefaultApiMock) ApiAccountsMgmtV1TokenAuthorizationPostExecuteCalls( } // ApiAuthorizationsV1AccessReviewPost calls ApiAuthorizationsV1AccessReviewPostFunc. -func (mock *DefaultApiMock) ApiAuthorizationsV1AccessReviewPost(ctx context.Context) ApiApiAuthorizationsV1AccessReviewPostRequest { +func (mock *DefaultApiMock) ApiAuthorizationsV1AccessReviewPost(ctx _context.Context) ApiApiAuthorizationsV1AccessReviewPostRequest { if mock.ApiAuthorizationsV1AccessReviewPostFunc == nil { panic("DefaultApiMock.ApiAuthorizationsV1AccessReviewPostFunc: method is nil but DefaultApi.ApiAuthorizationsV1AccessReviewPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -7519,10 +7519,10 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1AccessReviewPost(ctx context.Cont // Check the length with: // len(mockedDefaultApi.ApiAuthorizationsV1AccessReviewPostCalls()) func (mock *DefaultApiMock) ApiAuthorizationsV1AccessReviewPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAuthorizationsV1AccessReviewPost.RLock() calls = mock.calls.ApiAuthorizationsV1AccessReviewPost @@ -7531,7 +7531,7 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1AccessReviewPostCalls() []struct } // ApiAuthorizationsV1AccessReviewPostExecute calls ApiAuthorizationsV1AccessReviewPostExecuteFunc. -func (mock *DefaultApiMock) ApiAuthorizationsV1AccessReviewPostExecute(r ApiApiAuthorizationsV1AccessReviewPostRequest) (AccessReviewResponse, *http.Response, error) { +func (mock *DefaultApiMock) ApiAuthorizationsV1AccessReviewPostExecute(r ApiApiAuthorizationsV1AccessReviewPostRequest) (AccessReviewResponse, *_nethttp.Response, error) { if mock.ApiAuthorizationsV1AccessReviewPostExecuteFunc == nil { panic("DefaultApiMock.ApiAuthorizationsV1AccessReviewPostExecuteFunc: method is nil but DefaultApi.ApiAuthorizationsV1AccessReviewPostExecute was just called") } @@ -7562,12 +7562,12 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1AccessReviewPostExecuteCalls() [] } // ApiAuthorizationsV1CapabilityReviewPost calls ApiAuthorizationsV1CapabilityReviewPostFunc. -func (mock *DefaultApiMock) ApiAuthorizationsV1CapabilityReviewPost(ctx context.Context) ApiApiAuthorizationsV1CapabilityReviewPostRequest { +func (mock *DefaultApiMock) ApiAuthorizationsV1CapabilityReviewPost(ctx _context.Context) ApiApiAuthorizationsV1CapabilityReviewPostRequest { if mock.ApiAuthorizationsV1CapabilityReviewPostFunc == nil { panic("DefaultApiMock.ApiAuthorizationsV1CapabilityReviewPostFunc: method is nil but DefaultApi.ApiAuthorizationsV1CapabilityReviewPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -7581,10 +7581,10 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1CapabilityReviewPost(ctx context. // Check the length with: // len(mockedDefaultApi.ApiAuthorizationsV1CapabilityReviewPostCalls()) func (mock *DefaultApiMock) ApiAuthorizationsV1CapabilityReviewPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAuthorizationsV1CapabilityReviewPost.RLock() calls = mock.calls.ApiAuthorizationsV1CapabilityReviewPost @@ -7593,7 +7593,7 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1CapabilityReviewPostCalls() []str } // ApiAuthorizationsV1CapabilityReviewPostExecute calls ApiAuthorizationsV1CapabilityReviewPostExecuteFunc. -func (mock *DefaultApiMock) ApiAuthorizationsV1CapabilityReviewPostExecute(r ApiApiAuthorizationsV1CapabilityReviewPostRequest) (CapabilityReview, *http.Response, error) { +func (mock *DefaultApiMock) ApiAuthorizationsV1CapabilityReviewPostExecute(r ApiApiAuthorizationsV1CapabilityReviewPostRequest) (CapabilityReview, *_nethttp.Response, error) { if mock.ApiAuthorizationsV1CapabilityReviewPostExecuteFunc == nil { panic("DefaultApiMock.ApiAuthorizationsV1CapabilityReviewPostExecuteFunc: method is nil but DefaultApi.ApiAuthorizationsV1CapabilityReviewPostExecute was just called") } @@ -7624,12 +7624,12 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1CapabilityReviewPostExecuteCalls( } // ApiAuthorizationsV1ExportControlReviewPost calls ApiAuthorizationsV1ExportControlReviewPostFunc. -func (mock *DefaultApiMock) ApiAuthorizationsV1ExportControlReviewPost(ctx context.Context) ApiApiAuthorizationsV1ExportControlReviewPostRequest { +func (mock *DefaultApiMock) ApiAuthorizationsV1ExportControlReviewPost(ctx _context.Context) ApiApiAuthorizationsV1ExportControlReviewPostRequest { if mock.ApiAuthorizationsV1ExportControlReviewPostFunc == nil { panic("DefaultApiMock.ApiAuthorizationsV1ExportControlReviewPostFunc: method is nil but DefaultApi.ApiAuthorizationsV1ExportControlReviewPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -7643,10 +7643,10 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1ExportControlReviewPost(ctx conte // Check the length with: // len(mockedDefaultApi.ApiAuthorizationsV1ExportControlReviewPostCalls()) func (mock *DefaultApiMock) ApiAuthorizationsV1ExportControlReviewPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAuthorizationsV1ExportControlReviewPost.RLock() calls = mock.calls.ApiAuthorizationsV1ExportControlReviewPost @@ -7655,7 +7655,7 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1ExportControlReviewPostCalls() [] } // ApiAuthorizationsV1ExportControlReviewPostExecute calls ApiAuthorizationsV1ExportControlReviewPostExecuteFunc. -func (mock *DefaultApiMock) ApiAuthorizationsV1ExportControlReviewPostExecute(r ApiApiAuthorizationsV1ExportControlReviewPostRequest) (ExportControlReview, *http.Response, error) { +func (mock *DefaultApiMock) ApiAuthorizationsV1ExportControlReviewPostExecute(r ApiApiAuthorizationsV1ExportControlReviewPostRequest) (ExportControlReview, *_nethttp.Response, error) { if mock.ApiAuthorizationsV1ExportControlReviewPostExecuteFunc == nil { panic("DefaultApiMock.ApiAuthorizationsV1ExportControlReviewPostExecuteFunc: method is nil but DefaultApi.ApiAuthorizationsV1ExportControlReviewPostExecute was just called") } @@ -7686,12 +7686,12 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1ExportControlReviewPostExecuteCal } // ApiAuthorizationsV1ResourceReviewPost calls ApiAuthorizationsV1ResourceReviewPostFunc. -func (mock *DefaultApiMock) ApiAuthorizationsV1ResourceReviewPost(ctx context.Context) ApiApiAuthorizationsV1ResourceReviewPostRequest { +func (mock *DefaultApiMock) ApiAuthorizationsV1ResourceReviewPost(ctx _context.Context) ApiApiAuthorizationsV1ResourceReviewPostRequest { if mock.ApiAuthorizationsV1ResourceReviewPostFunc == nil { panic("DefaultApiMock.ApiAuthorizationsV1ResourceReviewPostFunc: method is nil but DefaultApi.ApiAuthorizationsV1ResourceReviewPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -7705,10 +7705,10 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1ResourceReviewPost(ctx context.Co // Check the length with: // len(mockedDefaultApi.ApiAuthorizationsV1ResourceReviewPostCalls()) func (mock *DefaultApiMock) ApiAuthorizationsV1ResourceReviewPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAuthorizationsV1ResourceReviewPost.RLock() calls = mock.calls.ApiAuthorizationsV1ResourceReviewPost @@ -7717,7 +7717,7 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1ResourceReviewPostCalls() []struc } // ApiAuthorizationsV1ResourceReviewPostExecute calls ApiAuthorizationsV1ResourceReviewPostExecuteFunc. -func (mock *DefaultApiMock) ApiAuthorizationsV1ResourceReviewPostExecute(r ApiApiAuthorizationsV1ResourceReviewPostRequest) (ResourceReview, *http.Response, error) { +func (mock *DefaultApiMock) ApiAuthorizationsV1ResourceReviewPostExecute(r ApiApiAuthorizationsV1ResourceReviewPostRequest) (ResourceReview, *_nethttp.Response, error) { if mock.ApiAuthorizationsV1ResourceReviewPostExecuteFunc == nil { panic("DefaultApiMock.ApiAuthorizationsV1ResourceReviewPostExecuteFunc: method is nil but DefaultApi.ApiAuthorizationsV1ResourceReviewPostExecute was just called") } @@ -7748,12 +7748,12 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1ResourceReviewPostExecuteCalls() } // ApiAuthorizationsV1SelfAccessReviewPost calls ApiAuthorizationsV1SelfAccessReviewPostFunc. -func (mock *DefaultApiMock) ApiAuthorizationsV1SelfAccessReviewPost(ctx context.Context) ApiApiAuthorizationsV1SelfAccessReviewPostRequest { +func (mock *DefaultApiMock) ApiAuthorizationsV1SelfAccessReviewPost(ctx _context.Context) ApiApiAuthorizationsV1SelfAccessReviewPostRequest { if mock.ApiAuthorizationsV1SelfAccessReviewPostFunc == nil { panic("DefaultApiMock.ApiAuthorizationsV1SelfAccessReviewPostFunc: method is nil but DefaultApi.ApiAuthorizationsV1SelfAccessReviewPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -7767,10 +7767,10 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1SelfAccessReviewPost(ctx context. // Check the length with: // len(mockedDefaultApi.ApiAuthorizationsV1SelfAccessReviewPostCalls()) func (mock *DefaultApiMock) ApiAuthorizationsV1SelfAccessReviewPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAuthorizationsV1SelfAccessReviewPost.RLock() calls = mock.calls.ApiAuthorizationsV1SelfAccessReviewPost @@ -7779,7 +7779,7 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1SelfAccessReviewPostCalls() []str } // ApiAuthorizationsV1SelfAccessReviewPostExecute calls ApiAuthorizationsV1SelfAccessReviewPostExecuteFunc. -func (mock *DefaultApiMock) ApiAuthorizationsV1SelfAccessReviewPostExecute(r ApiApiAuthorizationsV1SelfAccessReviewPostRequest) (AccessReviewResponse, *http.Response, error) { +func (mock *DefaultApiMock) ApiAuthorizationsV1SelfAccessReviewPostExecute(r ApiApiAuthorizationsV1SelfAccessReviewPostRequest) (AccessReviewResponse, *_nethttp.Response, error) { if mock.ApiAuthorizationsV1SelfAccessReviewPostExecuteFunc == nil { panic("DefaultApiMock.ApiAuthorizationsV1SelfAccessReviewPostExecuteFunc: method is nil but DefaultApi.ApiAuthorizationsV1SelfAccessReviewPostExecute was just called") } @@ -7810,12 +7810,12 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1SelfAccessReviewPostExecuteCalls( } // ApiAuthorizationsV1SelfResourceReviewPost calls ApiAuthorizationsV1SelfResourceReviewPostFunc. -func (mock *DefaultApiMock) ApiAuthorizationsV1SelfResourceReviewPost(ctx context.Context) ApiApiAuthorizationsV1SelfResourceReviewPostRequest { +func (mock *DefaultApiMock) ApiAuthorizationsV1SelfResourceReviewPost(ctx _context.Context) ApiApiAuthorizationsV1SelfResourceReviewPostRequest { if mock.ApiAuthorizationsV1SelfResourceReviewPostFunc == nil { panic("DefaultApiMock.ApiAuthorizationsV1SelfResourceReviewPostFunc: method is nil but DefaultApi.ApiAuthorizationsV1SelfResourceReviewPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -7829,10 +7829,10 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1SelfResourceReviewPost(ctx contex // Check the length with: // len(mockedDefaultApi.ApiAuthorizationsV1SelfResourceReviewPostCalls()) func (mock *DefaultApiMock) ApiAuthorizationsV1SelfResourceReviewPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAuthorizationsV1SelfResourceReviewPost.RLock() calls = mock.calls.ApiAuthorizationsV1SelfResourceReviewPost @@ -7841,7 +7841,7 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1SelfResourceReviewPostCalls() []s } // ApiAuthorizationsV1SelfResourceReviewPostExecute calls ApiAuthorizationsV1SelfResourceReviewPostExecuteFunc. -func (mock *DefaultApiMock) ApiAuthorizationsV1SelfResourceReviewPostExecute(r ApiApiAuthorizationsV1SelfResourceReviewPostRequest) (SelfResourceReview, *http.Response, error) { +func (mock *DefaultApiMock) ApiAuthorizationsV1SelfResourceReviewPostExecute(r ApiApiAuthorizationsV1SelfResourceReviewPostRequest) (SelfResourceReview, *_nethttp.Response, error) { if mock.ApiAuthorizationsV1SelfResourceReviewPostExecuteFunc == nil { panic("DefaultApiMock.ApiAuthorizationsV1SelfResourceReviewPostExecuteFunc: method is nil but DefaultApi.ApiAuthorizationsV1SelfResourceReviewPostExecute was just called") } @@ -7872,12 +7872,12 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1SelfResourceReviewPostExecuteCall } // ApiAuthorizationsV1SelfTermsReviewPost calls ApiAuthorizationsV1SelfTermsReviewPostFunc. -func (mock *DefaultApiMock) ApiAuthorizationsV1SelfTermsReviewPost(ctx context.Context) ApiApiAuthorizationsV1SelfTermsReviewPostRequest { +func (mock *DefaultApiMock) ApiAuthorizationsV1SelfTermsReviewPost(ctx _context.Context) ApiApiAuthorizationsV1SelfTermsReviewPostRequest { if mock.ApiAuthorizationsV1SelfTermsReviewPostFunc == nil { panic("DefaultApiMock.ApiAuthorizationsV1SelfTermsReviewPostFunc: method is nil but DefaultApi.ApiAuthorizationsV1SelfTermsReviewPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -7891,10 +7891,10 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1SelfTermsReviewPost(ctx context.C // Check the length with: // len(mockedDefaultApi.ApiAuthorizationsV1SelfTermsReviewPostCalls()) func (mock *DefaultApiMock) ApiAuthorizationsV1SelfTermsReviewPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAuthorizationsV1SelfTermsReviewPost.RLock() calls = mock.calls.ApiAuthorizationsV1SelfTermsReviewPost @@ -7903,7 +7903,7 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1SelfTermsReviewPostCalls() []stru } // ApiAuthorizationsV1SelfTermsReviewPostExecute calls ApiAuthorizationsV1SelfTermsReviewPostExecuteFunc. -func (mock *DefaultApiMock) ApiAuthorizationsV1SelfTermsReviewPostExecute(r ApiApiAuthorizationsV1SelfTermsReviewPostRequest) (TermsReviewResponse, *http.Response, error) { +func (mock *DefaultApiMock) ApiAuthorizationsV1SelfTermsReviewPostExecute(r ApiApiAuthorizationsV1SelfTermsReviewPostRequest) (TermsReviewResponse, *_nethttp.Response, error) { if mock.ApiAuthorizationsV1SelfTermsReviewPostExecuteFunc == nil { panic("DefaultApiMock.ApiAuthorizationsV1SelfTermsReviewPostExecuteFunc: method is nil but DefaultApi.ApiAuthorizationsV1SelfTermsReviewPostExecute was just called") } @@ -7934,12 +7934,12 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1SelfTermsReviewPostExecuteCalls() } // ApiAuthorizationsV1TermsReviewPost calls ApiAuthorizationsV1TermsReviewPostFunc. -func (mock *DefaultApiMock) ApiAuthorizationsV1TermsReviewPost(ctx context.Context) ApiApiAuthorizationsV1TermsReviewPostRequest { +func (mock *DefaultApiMock) ApiAuthorizationsV1TermsReviewPost(ctx _context.Context) ApiApiAuthorizationsV1TermsReviewPostRequest { if mock.ApiAuthorizationsV1TermsReviewPostFunc == nil { panic("DefaultApiMock.ApiAuthorizationsV1TermsReviewPostFunc: method is nil but DefaultApi.ApiAuthorizationsV1TermsReviewPost was just called") } callInfo := struct { - Ctx context.Context + Ctx _context.Context }{ Ctx: ctx, } @@ -7953,10 +7953,10 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1TermsReviewPost(ctx context.Conte // Check the length with: // len(mockedDefaultApi.ApiAuthorizationsV1TermsReviewPostCalls()) func (mock *DefaultApiMock) ApiAuthorizationsV1TermsReviewPostCalls() []struct { - Ctx context.Context + Ctx _context.Context } { var calls []struct { - Ctx context.Context + Ctx _context.Context } mock.lockApiAuthorizationsV1TermsReviewPost.RLock() calls = mock.calls.ApiAuthorizationsV1TermsReviewPost @@ -7965,7 +7965,7 @@ func (mock *DefaultApiMock) ApiAuthorizationsV1TermsReviewPostCalls() []struct { } // ApiAuthorizationsV1TermsReviewPostExecute calls ApiAuthorizationsV1TermsReviewPostExecuteFunc. -func (mock *DefaultApiMock) ApiAuthorizationsV1TermsReviewPostExecute(r ApiApiAuthorizationsV1TermsReviewPostRequest) (TermsReviewResponse, *http.Response, error) { +func (mock *DefaultApiMock) ApiAuthorizationsV1TermsReviewPostExecute(r ApiApiAuthorizationsV1TermsReviewPostRequest) (TermsReviewResponse, *_nethttp.Response, error) { if mock.ApiAuthorizationsV1TermsReviewPostExecuteFunc == nil { panic("DefaultApiMock.ApiAuthorizationsV1TermsReviewPostExecuteFunc: method is nil but DefaultApi.ApiAuthorizationsV1TermsReviewPostExecute was just called") } diff --git a/pkg/apis/ams/amsclient/docs/AccessReview.md b/pkg/api/ams/amsclient/docs/AccessReview.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/AccessReview.md rename to pkg/api/ams/amsclient/docs/AccessReview.md diff --git a/pkg/apis/ams/amsclient/docs/AccessReviewResponse.md b/pkg/api/ams/amsclient/docs/AccessReviewResponse.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/AccessReviewResponse.md rename to pkg/api/ams/amsclient/docs/AccessReviewResponse.md diff --git a/pkg/apis/ams/amsclient/docs/AccessTokenCfg.md b/pkg/api/ams/amsclient/docs/AccessTokenCfg.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/AccessTokenCfg.md rename to pkg/api/ams/amsclient/docs/AccessTokenCfg.md diff --git a/pkg/apis/ams/amsclient/docs/Account.md b/pkg/api/ams/amsclient/docs/Account.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/Account.md rename to pkg/api/ams/amsclient/docs/Account.md diff --git a/pkg/apis/ams/amsclient/docs/AccountAllOf.md b/pkg/api/ams/amsclient/docs/AccountAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/AccountAllOf.md rename to pkg/api/ams/amsclient/docs/AccountAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/AccountList.md b/pkg/api/ams/amsclient/docs/AccountList.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/AccountList.md rename to pkg/api/ams/amsclient/docs/AccountList.md diff --git a/pkg/apis/ams/amsclient/docs/AccountListAllOf.md b/pkg/api/ams/amsclient/docs/AccountListAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/AccountListAllOf.md rename to pkg/api/ams/amsclient/docs/AccountListAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/AccountPatchRequest.md b/pkg/api/ams/amsclient/docs/AccountPatchRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/AccountPatchRequest.md rename to pkg/api/ams/amsclient/docs/AccountPatchRequest.md diff --git a/pkg/apis/ams/amsclient/docs/AccountReference.md b/pkg/api/ams/amsclient/docs/AccountReference.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/AccountReference.md rename to pkg/api/ams/amsclient/docs/AccountReference.md diff --git a/pkg/apis/ams/amsclient/docs/AccountReferenceAllOf.md b/pkg/api/ams/amsclient/docs/AccountReferenceAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/AccountReferenceAllOf.md rename to pkg/api/ams/amsclient/docs/AccountReferenceAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/Capability.md b/pkg/api/ams/amsclient/docs/Capability.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/Capability.md rename to pkg/api/ams/amsclient/docs/Capability.md diff --git a/pkg/apis/ams/amsclient/docs/CapabilityAllOf.md b/pkg/api/ams/amsclient/docs/CapabilityAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/CapabilityAllOf.md rename to pkg/api/ams/amsclient/docs/CapabilityAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/CapabilityReview.md b/pkg/api/ams/amsclient/docs/CapabilityReview.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/CapabilityReview.md rename to pkg/api/ams/amsclient/docs/CapabilityReview.md diff --git a/pkg/apis/ams/amsclient/docs/CapabilityReviewRequest.md b/pkg/api/ams/amsclient/docs/CapabilityReviewRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/CapabilityReviewRequest.md rename to pkg/api/ams/amsclient/docs/CapabilityReviewRequest.md diff --git a/pkg/apis/ams/amsclient/docs/ClusterAuthorizationRequest.md b/pkg/api/ams/amsclient/docs/ClusterAuthorizationRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ClusterAuthorizationRequest.md rename to pkg/api/ams/amsclient/docs/ClusterAuthorizationRequest.md diff --git a/pkg/apis/ams/amsclient/docs/ClusterAuthorizationResponse.md b/pkg/api/ams/amsclient/docs/ClusterAuthorizationResponse.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ClusterAuthorizationResponse.md rename to pkg/api/ams/amsclient/docs/ClusterAuthorizationResponse.md diff --git a/pkg/apis/ams/amsclient/docs/ClusterMetricsNodes.md b/pkg/api/ams/amsclient/docs/ClusterMetricsNodes.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ClusterMetricsNodes.md rename to pkg/api/ams/amsclient/docs/ClusterMetricsNodes.md diff --git a/pkg/apis/ams/amsclient/docs/ClusterRegistrationRequest.md b/pkg/api/ams/amsclient/docs/ClusterRegistrationRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ClusterRegistrationRequest.md rename to pkg/api/ams/amsclient/docs/ClusterRegistrationRequest.md diff --git a/pkg/apis/ams/amsclient/docs/ClusterRegistrationResponse.md b/pkg/api/ams/amsclient/docs/ClusterRegistrationResponse.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ClusterRegistrationResponse.md rename to pkg/api/ams/amsclient/docs/ClusterRegistrationResponse.md diff --git a/pkg/apis/ams/amsclient/docs/ClusterResource.md b/pkg/api/ams/amsclient/docs/ClusterResource.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ClusterResource.md rename to pkg/api/ams/amsclient/docs/ClusterResource.md diff --git a/pkg/apis/ams/amsclient/docs/ClusterResourceTotal.md b/pkg/api/ams/amsclient/docs/ClusterResourceTotal.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ClusterResourceTotal.md rename to pkg/api/ams/amsclient/docs/ClusterResourceTotal.md diff --git a/pkg/apis/ams/amsclient/docs/ClusterUpgrade.md b/pkg/api/ams/amsclient/docs/ClusterUpgrade.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ClusterUpgrade.md rename to pkg/api/ams/amsclient/docs/ClusterUpgrade.md diff --git a/pkg/apis/ams/amsclient/docs/DefaultApi.md b/pkg/api/ams/amsclient/docs/DefaultApi.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/DefaultApi.md rename to pkg/api/ams/amsclient/docs/DefaultApi.md diff --git a/pkg/apis/ams/amsclient/docs/EphemeralResourceQuota.md b/pkg/api/ams/amsclient/docs/EphemeralResourceQuota.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/EphemeralResourceQuota.md rename to pkg/api/ams/amsclient/docs/EphemeralResourceQuota.md diff --git a/pkg/apis/ams/amsclient/docs/Error.md b/pkg/api/ams/amsclient/docs/Error.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/Error.md rename to pkg/api/ams/amsclient/docs/Error.md diff --git a/pkg/apis/ams/amsclient/docs/ErrorAllOf.md b/pkg/api/ams/amsclient/docs/ErrorAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ErrorAllOf.md rename to pkg/api/ams/amsclient/docs/ErrorAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/ErrorList.md b/pkg/api/ams/amsclient/docs/ErrorList.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ErrorList.md rename to pkg/api/ams/amsclient/docs/ErrorList.md diff --git a/pkg/apis/ams/amsclient/docs/ErrorListAllOf.md b/pkg/api/ams/amsclient/docs/ErrorListAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ErrorListAllOf.md rename to pkg/api/ams/amsclient/docs/ErrorListAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/ExcessResource.md b/pkg/api/ams/amsclient/docs/ExcessResource.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ExcessResource.md rename to pkg/api/ams/amsclient/docs/ExcessResource.md diff --git a/pkg/apis/ams/amsclient/docs/ExcessResourceAllOf.md b/pkg/api/ams/amsclient/docs/ExcessResourceAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ExcessResourceAllOf.md rename to pkg/api/ams/amsclient/docs/ExcessResourceAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/ExportControlReview.md b/pkg/api/ams/amsclient/docs/ExportControlReview.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ExportControlReview.md rename to pkg/api/ams/amsclient/docs/ExportControlReview.md diff --git a/pkg/apis/ams/amsclient/docs/ExportControlReviewRequest.md b/pkg/api/ams/amsclient/docs/ExportControlReviewRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ExportControlReviewRequest.md rename to pkg/api/ams/amsclient/docs/ExportControlReviewRequest.md diff --git a/pkg/apis/ams/amsclient/docs/FeatureToggle.md b/pkg/api/ams/amsclient/docs/FeatureToggle.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/FeatureToggle.md rename to pkg/api/ams/amsclient/docs/FeatureToggle.md diff --git a/pkg/apis/ams/amsclient/docs/FeatureToggleAllOf.md b/pkg/api/ams/amsclient/docs/FeatureToggleAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/FeatureToggleAllOf.md rename to pkg/api/ams/amsclient/docs/FeatureToggleAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/FeatureToggleQueryRequest.md b/pkg/api/ams/amsclient/docs/FeatureToggleQueryRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/FeatureToggleQueryRequest.md rename to pkg/api/ams/amsclient/docs/FeatureToggleQueryRequest.md diff --git a/pkg/apis/ams/amsclient/docs/FeatureToggleQueryRequestAllOf.md b/pkg/api/ams/amsclient/docs/FeatureToggleQueryRequestAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/FeatureToggleQueryRequestAllOf.md rename to pkg/api/ams/amsclient/docs/FeatureToggleQueryRequestAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/Label.md b/pkg/api/ams/amsclient/docs/Label.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/Label.md rename to pkg/api/ams/amsclient/docs/Label.md diff --git a/pkg/apis/ams/amsclient/docs/LabelAllOf.md b/pkg/api/ams/amsclient/docs/LabelAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/LabelAllOf.md rename to pkg/api/ams/amsclient/docs/LabelAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/LabelList.md b/pkg/api/ams/amsclient/docs/LabelList.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/LabelList.md rename to pkg/api/ams/amsclient/docs/LabelList.md diff --git a/pkg/apis/ams/amsclient/docs/LabelListAllOf.md b/pkg/api/ams/amsclient/docs/LabelListAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/LabelListAllOf.md rename to pkg/api/ams/amsclient/docs/LabelListAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/List.md b/pkg/api/ams/amsclient/docs/List.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/List.md rename to pkg/api/ams/amsclient/docs/List.md diff --git a/pkg/apis/ams/amsclient/docs/Metric.md b/pkg/api/ams/amsclient/docs/Metric.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/Metric.md rename to pkg/api/ams/amsclient/docs/Metric.md diff --git a/pkg/apis/ams/amsclient/docs/MetricAllOf.md b/pkg/api/ams/amsclient/docs/MetricAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/MetricAllOf.md rename to pkg/api/ams/amsclient/docs/MetricAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/MetricsList.md b/pkg/api/ams/amsclient/docs/MetricsList.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/MetricsList.md rename to pkg/api/ams/amsclient/docs/MetricsList.md diff --git a/pkg/apis/ams/amsclient/docs/MetricsListAllOf.md b/pkg/api/ams/amsclient/docs/MetricsListAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/MetricsListAllOf.md rename to pkg/api/ams/amsclient/docs/MetricsListAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/NotificationContactCreateRequest.md b/pkg/api/ams/amsclient/docs/NotificationContactCreateRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/NotificationContactCreateRequest.md rename to pkg/api/ams/amsclient/docs/NotificationContactCreateRequest.md diff --git a/pkg/apis/ams/amsclient/docs/NotificationRequest.md b/pkg/api/ams/amsclient/docs/NotificationRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/NotificationRequest.md rename to pkg/api/ams/amsclient/docs/NotificationRequest.md diff --git a/pkg/apis/ams/amsclient/docs/ObjectReference.md b/pkg/api/ams/amsclient/docs/ObjectReference.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ObjectReference.md rename to pkg/api/ams/amsclient/docs/ObjectReference.md diff --git a/pkg/apis/ams/amsclient/docs/OneMetric.md b/pkg/api/ams/amsclient/docs/OneMetric.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/OneMetric.md rename to pkg/api/ams/amsclient/docs/OneMetric.md diff --git a/pkg/apis/ams/amsclient/docs/Organization.md b/pkg/api/ams/amsclient/docs/Organization.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/Organization.md rename to pkg/api/ams/amsclient/docs/Organization.md diff --git a/pkg/apis/ams/amsclient/docs/OrganizationAllOf.md b/pkg/api/ams/amsclient/docs/OrganizationAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/OrganizationAllOf.md rename to pkg/api/ams/amsclient/docs/OrganizationAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/OrganizationList.md b/pkg/api/ams/amsclient/docs/OrganizationList.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/OrganizationList.md rename to pkg/api/ams/amsclient/docs/OrganizationList.md diff --git a/pkg/apis/ams/amsclient/docs/OrganizationListAllOf.md b/pkg/api/ams/amsclient/docs/OrganizationListAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/OrganizationListAllOf.md rename to pkg/api/ams/amsclient/docs/OrganizationListAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/OrganizationPatchRequest.md b/pkg/api/ams/amsclient/docs/OrganizationPatchRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/OrganizationPatchRequest.md rename to pkg/api/ams/amsclient/docs/OrganizationPatchRequest.md diff --git a/pkg/apis/ams/amsclient/docs/Permission.md b/pkg/api/ams/amsclient/docs/Permission.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/Permission.md rename to pkg/api/ams/amsclient/docs/Permission.md diff --git a/pkg/apis/ams/amsclient/docs/PermissionAllOf.md b/pkg/api/ams/amsclient/docs/PermissionAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/PermissionAllOf.md rename to pkg/api/ams/amsclient/docs/PermissionAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/PermissionList.md b/pkg/api/ams/amsclient/docs/PermissionList.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/PermissionList.md rename to pkg/api/ams/amsclient/docs/PermissionList.md diff --git a/pkg/apis/ams/amsclient/docs/PermissionListAllOf.md b/pkg/api/ams/amsclient/docs/PermissionListAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/PermissionListAllOf.md rename to pkg/api/ams/amsclient/docs/PermissionListAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/Plan.md b/pkg/api/ams/amsclient/docs/Plan.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/Plan.md rename to pkg/api/ams/amsclient/docs/Plan.md diff --git a/pkg/apis/ams/amsclient/docs/PlanAllOf.md b/pkg/api/ams/amsclient/docs/PlanAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/PlanAllOf.md rename to pkg/api/ams/amsclient/docs/PlanAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/PlanList.md b/pkg/api/ams/amsclient/docs/PlanList.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/PlanList.md rename to pkg/api/ams/amsclient/docs/PlanList.md diff --git a/pkg/apis/ams/amsclient/docs/PlanListAllOf.md b/pkg/api/ams/amsclient/docs/PlanListAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/PlanListAllOf.md rename to pkg/api/ams/amsclient/docs/PlanListAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/PullSecretRequest.md b/pkg/api/ams/amsclient/docs/PullSecretRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/PullSecretRequest.md rename to pkg/api/ams/amsclient/docs/PullSecretRequest.md diff --git a/pkg/apis/ams/amsclient/docs/QuotaCost.md b/pkg/api/ams/amsclient/docs/QuotaCost.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/QuotaCost.md rename to pkg/api/ams/amsclient/docs/QuotaCost.md diff --git a/pkg/apis/ams/amsclient/docs/QuotaCostAllOf.md b/pkg/api/ams/amsclient/docs/QuotaCostAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/QuotaCostAllOf.md rename to pkg/api/ams/amsclient/docs/QuotaCostAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/QuotaCostList.md b/pkg/api/ams/amsclient/docs/QuotaCostList.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/QuotaCostList.md rename to pkg/api/ams/amsclient/docs/QuotaCostList.md diff --git a/pkg/apis/ams/amsclient/docs/QuotaCostListAllOf.md b/pkg/api/ams/amsclient/docs/QuotaCostListAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/QuotaCostListAllOf.md rename to pkg/api/ams/amsclient/docs/QuotaCostListAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/QuotaSummary.md b/pkg/api/ams/amsclient/docs/QuotaSummary.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/QuotaSummary.md rename to pkg/api/ams/amsclient/docs/QuotaSummary.md diff --git a/pkg/apis/ams/amsclient/docs/QuotaSummaryAllOf.md b/pkg/api/ams/amsclient/docs/QuotaSummaryAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/QuotaSummaryAllOf.md rename to pkg/api/ams/amsclient/docs/QuotaSummaryAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/QuotaSummaryList.md b/pkg/api/ams/amsclient/docs/QuotaSummaryList.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/QuotaSummaryList.md rename to pkg/api/ams/amsclient/docs/QuotaSummaryList.md diff --git a/pkg/apis/ams/amsclient/docs/QuotaSummaryListAllOf.md b/pkg/api/ams/amsclient/docs/QuotaSummaryListAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/QuotaSummaryListAllOf.md rename to pkg/api/ams/amsclient/docs/QuotaSummaryListAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/Registry.md b/pkg/api/ams/amsclient/docs/Registry.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/Registry.md rename to pkg/api/ams/amsclient/docs/Registry.md diff --git a/pkg/apis/ams/amsclient/docs/RegistryAllOf.md b/pkg/api/ams/amsclient/docs/RegistryAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RegistryAllOf.md rename to pkg/api/ams/amsclient/docs/RegistryAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/RegistryCreateRequest.md b/pkg/api/ams/amsclient/docs/RegistryCreateRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RegistryCreateRequest.md rename to pkg/api/ams/amsclient/docs/RegistryCreateRequest.md diff --git a/pkg/apis/ams/amsclient/docs/RegistryCredential.md b/pkg/api/ams/amsclient/docs/RegistryCredential.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RegistryCredential.md rename to pkg/api/ams/amsclient/docs/RegistryCredential.md diff --git a/pkg/apis/ams/amsclient/docs/RegistryCredentialAllOf.md b/pkg/api/ams/amsclient/docs/RegistryCredentialAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RegistryCredentialAllOf.md rename to pkg/api/ams/amsclient/docs/RegistryCredentialAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/RegistryCredentialList.md b/pkg/api/ams/amsclient/docs/RegistryCredentialList.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RegistryCredentialList.md rename to pkg/api/ams/amsclient/docs/RegistryCredentialList.md diff --git a/pkg/apis/ams/amsclient/docs/RegistryCredentialListAllOf.md b/pkg/api/ams/amsclient/docs/RegistryCredentialListAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RegistryCredentialListAllOf.md rename to pkg/api/ams/amsclient/docs/RegistryCredentialListAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/RegistryCredentialPatchRequest.md b/pkg/api/ams/amsclient/docs/RegistryCredentialPatchRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RegistryCredentialPatchRequest.md rename to pkg/api/ams/amsclient/docs/RegistryCredentialPatchRequest.md diff --git a/pkg/apis/ams/amsclient/docs/RegistryList.md b/pkg/api/ams/amsclient/docs/RegistryList.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RegistryList.md rename to pkg/api/ams/amsclient/docs/RegistryList.md diff --git a/pkg/apis/ams/amsclient/docs/RegistryListAllOf.md b/pkg/api/ams/amsclient/docs/RegistryListAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RegistryListAllOf.md rename to pkg/api/ams/amsclient/docs/RegistryListAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/RegistryRequest.md b/pkg/api/ams/amsclient/docs/RegistryRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RegistryRequest.md rename to pkg/api/ams/amsclient/docs/RegistryRequest.md diff --git a/pkg/apis/ams/amsclient/docs/RelatedResource.md b/pkg/api/ams/amsclient/docs/RelatedResource.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RelatedResource.md rename to pkg/api/ams/amsclient/docs/RelatedResource.md diff --git a/pkg/apis/ams/amsclient/docs/RelatedResourceAllOf.md b/pkg/api/ams/amsclient/docs/RelatedResourceAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RelatedResourceAllOf.md rename to pkg/api/ams/amsclient/docs/RelatedResourceAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/ReservedResource.md b/pkg/api/ams/amsclient/docs/ReservedResource.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ReservedResource.md rename to pkg/api/ams/amsclient/docs/ReservedResource.md diff --git a/pkg/apis/ams/amsclient/docs/ReservedResourceAllOf.md b/pkg/api/ams/amsclient/docs/ReservedResourceAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ReservedResourceAllOf.md rename to pkg/api/ams/amsclient/docs/ReservedResourceAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/ReservedResourceList.md b/pkg/api/ams/amsclient/docs/ReservedResourceList.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ReservedResourceList.md rename to pkg/api/ams/amsclient/docs/ReservedResourceList.md diff --git a/pkg/apis/ams/amsclient/docs/ReservedResourceListAllOf.md b/pkg/api/ams/amsclient/docs/ReservedResourceListAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ReservedResourceListAllOf.md rename to pkg/api/ams/amsclient/docs/ReservedResourceListAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/ResourceQuota.md b/pkg/api/ams/amsclient/docs/ResourceQuota.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ResourceQuota.md rename to pkg/api/ams/amsclient/docs/ResourceQuota.md diff --git a/pkg/apis/ams/amsclient/docs/ResourceQuotaAllOf.md b/pkg/api/ams/amsclient/docs/ResourceQuotaAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ResourceQuotaAllOf.md rename to pkg/api/ams/amsclient/docs/ResourceQuotaAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/ResourceQuotaList.md b/pkg/api/ams/amsclient/docs/ResourceQuotaList.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ResourceQuotaList.md rename to pkg/api/ams/amsclient/docs/ResourceQuotaList.md diff --git a/pkg/apis/ams/amsclient/docs/ResourceQuotaListAllOf.md b/pkg/api/ams/amsclient/docs/ResourceQuotaListAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ResourceQuotaListAllOf.md rename to pkg/api/ams/amsclient/docs/ResourceQuotaListAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/ResourceQuotaRequest.md b/pkg/api/ams/amsclient/docs/ResourceQuotaRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ResourceQuotaRequest.md rename to pkg/api/ams/amsclient/docs/ResourceQuotaRequest.md diff --git a/pkg/apis/ams/amsclient/docs/ResourceReview.md b/pkg/api/ams/amsclient/docs/ResourceReview.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ResourceReview.md rename to pkg/api/ams/amsclient/docs/ResourceReview.md diff --git a/pkg/apis/ams/amsclient/docs/ResourceReviewRequest.md b/pkg/api/ams/amsclient/docs/ResourceReviewRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/ResourceReviewRequest.md rename to pkg/api/ams/amsclient/docs/ResourceReviewRequest.md diff --git a/pkg/apis/ams/amsclient/docs/Role.md b/pkg/api/ams/amsclient/docs/Role.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/Role.md rename to pkg/api/ams/amsclient/docs/Role.md diff --git a/pkg/apis/ams/amsclient/docs/RoleAllOf.md b/pkg/api/ams/amsclient/docs/RoleAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RoleAllOf.md rename to pkg/api/ams/amsclient/docs/RoleAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/RoleBinding.md b/pkg/api/ams/amsclient/docs/RoleBinding.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RoleBinding.md rename to pkg/api/ams/amsclient/docs/RoleBinding.md diff --git a/pkg/apis/ams/amsclient/docs/RoleBindingAllOf.md b/pkg/api/ams/amsclient/docs/RoleBindingAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RoleBindingAllOf.md rename to pkg/api/ams/amsclient/docs/RoleBindingAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/RoleBindingCreateRequest.md b/pkg/api/ams/amsclient/docs/RoleBindingCreateRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RoleBindingCreateRequest.md rename to pkg/api/ams/amsclient/docs/RoleBindingCreateRequest.md diff --git a/pkg/apis/ams/amsclient/docs/RoleBindingList.md b/pkg/api/ams/amsclient/docs/RoleBindingList.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RoleBindingList.md rename to pkg/api/ams/amsclient/docs/RoleBindingList.md diff --git a/pkg/apis/ams/amsclient/docs/RoleBindingListAllOf.md b/pkg/api/ams/amsclient/docs/RoleBindingListAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RoleBindingListAllOf.md rename to pkg/api/ams/amsclient/docs/RoleBindingListAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/RoleBindingRequest.md b/pkg/api/ams/amsclient/docs/RoleBindingRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RoleBindingRequest.md rename to pkg/api/ams/amsclient/docs/RoleBindingRequest.md diff --git a/pkg/apis/ams/amsclient/docs/RoleList.md b/pkg/api/ams/amsclient/docs/RoleList.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RoleList.md rename to pkg/api/ams/amsclient/docs/RoleList.md diff --git a/pkg/apis/ams/amsclient/docs/RoleListAllOf.md b/pkg/api/ams/amsclient/docs/RoleListAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/RoleListAllOf.md rename to pkg/api/ams/amsclient/docs/RoleListAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/SKU.md b/pkg/api/ams/amsclient/docs/SKU.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SKU.md rename to pkg/api/ams/amsclient/docs/SKU.md diff --git a/pkg/apis/ams/amsclient/docs/SKUAllOf.md b/pkg/api/ams/amsclient/docs/SKUAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SKUAllOf.md rename to pkg/api/ams/amsclient/docs/SKUAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/SelfAccessReview.md b/pkg/api/ams/amsclient/docs/SelfAccessReview.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SelfAccessReview.md rename to pkg/api/ams/amsclient/docs/SelfAccessReview.md diff --git a/pkg/apis/ams/amsclient/docs/SelfResourceReview.md b/pkg/api/ams/amsclient/docs/SelfResourceReview.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SelfResourceReview.md rename to pkg/api/ams/amsclient/docs/SelfResourceReview.md diff --git a/pkg/apis/ams/amsclient/docs/SelfResourceReviewRequest.md b/pkg/api/ams/amsclient/docs/SelfResourceReviewRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SelfResourceReviewRequest.md rename to pkg/api/ams/amsclient/docs/SelfResourceReviewRequest.md diff --git a/pkg/apis/ams/amsclient/docs/SelfTermsReview.md b/pkg/api/ams/amsclient/docs/SelfTermsReview.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SelfTermsReview.md rename to pkg/api/ams/amsclient/docs/SelfTermsReview.md diff --git a/pkg/apis/ams/amsclient/docs/SkuList.md b/pkg/api/ams/amsclient/docs/SkuList.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SkuList.md rename to pkg/api/ams/amsclient/docs/SkuList.md diff --git a/pkg/apis/ams/amsclient/docs/SkuListAllOf.md b/pkg/api/ams/amsclient/docs/SkuListAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SkuListAllOf.md rename to pkg/api/ams/amsclient/docs/SkuListAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/SkuRules.md b/pkg/api/ams/amsclient/docs/SkuRules.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SkuRules.md rename to pkg/api/ams/amsclient/docs/SkuRules.md diff --git a/pkg/apis/ams/amsclient/docs/SkuRulesAllOf.md b/pkg/api/ams/amsclient/docs/SkuRulesAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SkuRulesAllOf.md rename to pkg/api/ams/amsclient/docs/SkuRulesAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/SkuRulesList.md b/pkg/api/ams/amsclient/docs/SkuRulesList.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SkuRulesList.md rename to pkg/api/ams/amsclient/docs/SkuRulesList.md diff --git a/pkg/apis/ams/amsclient/docs/SkuRulesListAllOf.md b/pkg/api/ams/amsclient/docs/SkuRulesListAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SkuRulesListAllOf.md rename to pkg/api/ams/amsclient/docs/SkuRulesListAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/Subscription.md b/pkg/api/ams/amsclient/docs/Subscription.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/Subscription.md rename to pkg/api/ams/amsclient/docs/Subscription.md diff --git a/pkg/apis/ams/amsclient/docs/SubscriptionAllOf.md b/pkg/api/ams/amsclient/docs/SubscriptionAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SubscriptionAllOf.md rename to pkg/api/ams/amsclient/docs/SubscriptionAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/SubscriptionCreateRequest.md b/pkg/api/ams/amsclient/docs/SubscriptionCreateRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SubscriptionCreateRequest.md rename to pkg/api/ams/amsclient/docs/SubscriptionCreateRequest.md diff --git a/pkg/apis/ams/amsclient/docs/SubscriptionList.md b/pkg/api/ams/amsclient/docs/SubscriptionList.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SubscriptionList.md rename to pkg/api/ams/amsclient/docs/SubscriptionList.md diff --git a/pkg/apis/ams/amsclient/docs/SubscriptionListAllOf.md b/pkg/api/ams/amsclient/docs/SubscriptionListAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SubscriptionListAllOf.md rename to pkg/api/ams/amsclient/docs/SubscriptionListAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/SubscriptionPatchRequest.md b/pkg/api/ams/amsclient/docs/SubscriptionPatchRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SubscriptionPatchRequest.md rename to pkg/api/ams/amsclient/docs/SubscriptionPatchRequest.md diff --git a/pkg/apis/ams/amsclient/docs/Summary.md b/pkg/api/ams/amsclient/docs/Summary.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/Summary.md rename to pkg/api/ams/amsclient/docs/Summary.md diff --git a/pkg/apis/ams/amsclient/docs/SummaryAllOf.md b/pkg/api/ams/amsclient/docs/SummaryAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SummaryAllOf.md rename to pkg/api/ams/amsclient/docs/SummaryAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/SummaryMetrics.md b/pkg/api/ams/amsclient/docs/SummaryMetrics.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SummaryMetrics.md rename to pkg/api/ams/amsclient/docs/SummaryMetrics.md diff --git a/pkg/apis/ams/amsclient/docs/SummaryMetricsAllOf.md b/pkg/api/ams/amsclient/docs/SummaryMetricsAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SummaryMetricsAllOf.md rename to pkg/api/ams/amsclient/docs/SummaryMetricsAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/SummaryVector.md b/pkg/api/ams/amsclient/docs/SummaryVector.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SummaryVector.md rename to pkg/api/ams/amsclient/docs/SummaryVector.md diff --git a/pkg/apis/ams/amsclient/docs/SummaryVectorAllOf.md b/pkg/api/ams/amsclient/docs/SummaryVectorAllOf.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SummaryVectorAllOf.md rename to pkg/api/ams/amsclient/docs/SummaryVectorAllOf.md diff --git a/pkg/apis/ams/amsclient/docs/SupportCasesCreatedResponse.md b/pkg/api/ams/amsclient/docs/SupportCasesCreatedResponse.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SupportCasesCreatedResponse.md rename to pkg/api/ams/amsclient/docs/SupportCasesCreatedResponse.md diff --git a/pkg/apis/ams/amsclient/docs/SupportCasesRequest.md b/pkg/api/ams/amsclient/docs/SupportCasesRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/SupportCasesRequest.md rename to pkg/api/ams/amsclient/docs/SupportCasesRequest.md diff --git a/pkg/apis/ams/amsclient/docs/TemplateParameter.md b/pkg/api/ams/amsclient/docs/TemplateParameter.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/TemplateParameter.md rename to pkg/api/ams/amsclient/docs/TemplateParameter.md diff --git a/pkg/apis/ams/amsclient/docs/TermsReview.md b/pkg/api/ams/amsclient/docs/TermsReview.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/TermsReview.md rename to pkg/api/ams/amsclient/docs/TermsReview.md diff --git a/pkg/apis/ams/amsclient/docs/TermsReviewResponse.md b/pkg/api/ams/amsclient/docs/TermsReviewResponse.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/TermsReviewResponse.md rename to pkg/api/ams/amsclient/docs/TermsReviewResponse.md diff --git a/pkg/apis/ams/amsclient/docs/TokenAuthorizationRequest.md b/pkg/api/ams/amsclient/docs/TokenAuthorizationRequest.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/TokenAuthorizationRequest.md rename to pkg/api/ams/amsclient/docs/TokenAuthorizationRequest.md diff --git a/pkg/apis/ams/amsclient/docs/TokenAuthorizationResponse.md b/pkg/api/ams/amsclient/docs/TokenAuthorizationResponse.md similarity index 100% rename from pkg/apis/ams/amsclient/docs/TokenAuthorizationResponse.md rename to pkg/api/ams/amsclient/docs/TokenAuthorizationResponse.md diff --git a/pkg/apis/ams/amsclient/git_push.sh b/pkg/api/ams/amsclient/git_push.sh similarity index 87% rename from pkg/apis/ams/amsclient/git_push.sh rename to pkg/api/ams/amsclient/git_push.sh index f53a75d4f..ced3be2b0 100644 --- a/pkg/apis/ams/amsclient/git_push.sh +++ b/pkg/api/ams/amsclient/git_push.sh @@ -1,7 +1,7 @@ #!/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-petstore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 @@ -38,14 +38,14 @@ git add . git commit -m "$release_note" # Sets the new remote -git_remote=$(git 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 + git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git fi fi @@ -55,3 +55,4 @@ 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/pkg/apis/ams/amsclient/model_access_review.go b/pkg/api/ams/amsclient/model_access_review.go similarity index 93% rename from pkg/apis/ams/amsclient/model_access_review.go rename to pkg/api/ams/amsclient/model_access_review.go index 673abdaea..3195ca691 100644 --- a/pkg/apis/ams/amsclient/model_access_review.go +++ b/pkg/api/ams/amsclient/model_access_review.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,13 +16,13 @@ import ( // 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"` + 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 @@ -58,7 +58,7 @@ func (o *AccessReview) GetAccountUsername() string { // 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 { + if o == nil { return nil, false } return &o.AccountUsername, true @@ -82,7 +82,7 @@ func (o *AccessReview) GetAction() string { // 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 { + if o == nil { return nil, false } return &o.Action, true @@ -202,7 +202,7 @@ func (o *AccessReview) GetResourceType() string { // 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 { + if o == nil { return nil, false } return &o.ResourceType, true @@ -306,5 +306,3 @@ func (v *NullableAccessReview) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_access_review_response.go b/pkg/api/ams/amsclient/model_access_review_response.go similarity index 95% rename from pkg/apis/ams/amsclient/model_access_review_response.go rename to pkg/api/ams/amsclient/model_access_review_response.go index f1c0e626f..0fafd7ddd 100644 --- a/pkg/apis/ams/amsclient/model_access_review_response.go +++ b/pkg/api/ams/amsclient/model_access_review_response.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,13 +16,13 @@ import ( // 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"` + 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"` + ResourceType *string `json:"resource_type,omitempty"` SubscriptionId *string `json:"subscription_id,omitempty"` } @@ -121,7 +121,7 @@ func (o *AccessReviewResponse) GetAllowed() bool { // 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 { + if o == nil { return nil, false } return &o.Allowed, true @@ -356,5 +356,3 @@ func (v *NullableAccessReviewResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_access_token_cfg.go b/pkg/api/ams/amsclient/model_access_token_cfg.go similarity index 95% rename from pkg/apis/ams/amsclient/model_access_token_cfg.go rename to pkg/api/ams/amsclient/model_access_token_cfg.go index 50bbc145b..6f5b5c14c 100644 --- a/pkg/apis/ams/amsclient/model_access_token_cfg.go +++ b/pkg/api/ams/amsclient/model_access_token_cfg.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -50,7 +50,7 @@ func (o *AccessTokenCfg) GetAuths() map[string]map[string]interface{} { // 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 { + if o == nil { return nil, false } return &o.Auths, true @@ -104,5 +104,3 @@ func (v *NullableAccessTokenCfg) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_account.go b/pkg/api/ams/amsclient/model_account.go similarity index 93% rename from pkg/apis/ams/amsclient/model_account.go rename to pkg/api/ams/amsclient/model_account.go index 4694272d0..b4e521170 100644 --- a/pkg/apis/ams/amsclient/model_account.go +++ b/pkg/api/ams/amsclient/model_account.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,23 +17,23 @@ import ( // 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"` - ServiceAccount *bool `json:"service_account,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - Username string `json:"username"` + 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"` + ServiceAccount *bool `json:"service_account,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Username string `json:"username"` } // NewAccount instantiates a new Account object @@ -587,7 +587,7 @@ func (o *Account) GetUsername() string { // 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 { + if o == nil { return nil, false } return &o.Username, true @@ -689,5 +689,3 @@ func (v *NullableAccount) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_account_all_of.go b/pkg/api/ams/amsclient/model_account_all_of.go similarity index 93% rename from pkg/apis/ams/amsclient/model_account_all_of.go rename to pkg/api/ams/amsclient/model_account_all_of.go index 42f695153..4ec3045da 100644 --- a/pkg/apis/ams/amsclient/model_account_all_of.go +++ b/pkg/api/ams/amsclient/model_account_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,20 +17,20 @@ import ( // 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"` - ServiceAccount *bool `json:"service_account,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - Username string `json:"username"` + 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"` + ServiceAccount *bool `json:"service_account,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Username string `json:"username"` } // NewAccountAllOf instantiates a new AccountAllOf object @@ -488,7 +488,7 @@ func (o *AccountAllOf) GetUsername() string { // 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 { + if o == nil { return nil, false } return &o.Username, true @@ -581,5 +581,3 @@ func (v *NullableAccountAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_account_list.go b/pkg/api/ams/amsclient/model_account_list.go similarity index 93% rename from pkg/apis/ams/amsclient/model_account_list.go rename to pkg/api/ams/amsclient/model_account_list.go index d3a366a1b..2ac8e94f0 100644 --- a/pkg/apis/ams/amsclient/model_account_list.go +++ b/pkg/api/ams/amsclient/model_account_list.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // AccountList struct for AccountList type AccountList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Account `json:"items"` } @@ -58,7 +58,7 @@ func (o *AccountList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *AccountList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *AccountList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *AccountList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *AccountList) GetItems() []Account { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,5 +220,3 @@ func (v *NullableAccountList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_account_list_all_of.go b/pkg/api/ams/amsclient/model_account_list_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_account_list_all_of.go rename to pkg/api/ams/amsclient/model_account_list_all_of.go index 18dcd18c9..9aaeb306a 100644 --- a/pkg/apis/ams/amsclient/model_account_list_all_of.go +++ b/pkg/api/ams/amsclient/model_account_list_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullableAccountListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_account_patch_request.go b/pkg/api/ams/amsclient/model_account_patch_request.go similarity index 95% rename from pkg/apis/ams/amsclient/model_account_patch_request.go rename to pkg/api/ams/amsclient/model_account_patch_request.go index 349653ba9..b15a70de4 100644 --- a/pkg/apis/ams/amsclient/model_account_patch_request.go +++ b/pkg/api/ams/amsclient/model_account_patch_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,14 +16,14 @@ import ( // AccountPatchRequest struct for AccountPatchRequest type AccountPatchRequest struct { - BanCode *string `json:"ban_code,omitempty"` + 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"` + 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"` + ServiceAccount *bool `json:"service_account,omitempty"` } // NewAccountPatchRequest instantiates a new AccountPatchRequest object @@ -363,5 +363,3 @@ func (v *NullableAccountPatchRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_account_reference.go b/pkg/api/ams/amsclient/model_account_reference.go similarity index 95% rename from pkg/apis/ams/amsclient/model_account_reference.go rename to pkg/api/ams/amsclient/model_account_reference.go index ca9280b23..97a2b5189 100644 --- a/pkg/apis/ams/amsclient/model_account_reference.go +++ b/pkg/api/ams/amsclient/model_account_reference.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,11 +16,11 @@ import ( // 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"` + 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"` } @@ -291,5 +291,3 @@ func (v *NullableAccountReference) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_account_reference_all_of.go b/pkg/api/ams/amsclient/model_account_reference_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_account_reference_all_of.go rename to pkg/api/ams/amsclient/model_account_reference_all_of.go index 10b789d4d..31ad49e3c 100644 --- a/pkg/apis/ams/amsclient/model_account_reference_all_of.go +++ b/pkg/api/ams/amsclient/model_account_reference_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,8 +16,8 @@ import ( // AccountReferenceAllOf struct for AccountReferenceAllOf type AccountReferenceAllOf struct { - Email *string `json:"email,omitempty"` - Name *string `json:"name,omitempty"` + Email *string `json:"email,omitempty"` + Name *string `json:"name,omitempty"` Username *string `json:"username,omitempty"` } @@ -183,5 +183,3 @@ func (v *NullableAccountReferenceAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_capability.go b/pkg/api/ams/amsclient/model_capability.go similarity index 93% rename from pkg/apis/ams/amsclient/model_capability.go rename to pkg/api/ams/amsclient/model_capability.go index 3db52590c..b5ac46748 100644 --- a/pkg/apis/ams/amsclient/model_capability.go +++ b/pkg/api/ams/amsclient/model_capability.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,12 +16,12 @@ import ( // 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"` + 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 @@ -153,7 +153,7 @@ func (o *Capability) GetInherited() bool { // 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 { + if o == nil { return nil, false } return &o.Inherited, true @@ -177,7 +177,7 @@ func (o *Capability) GetName() string { // 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 { + if o == nil { return nil, false } return &o.Name, true @@ -201,7 +201,7 @@ func (o *Capability) GetValue() string { // 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 { + if o == nil { return nil, false } return &o.Value, true @@ -270,5 +270,3 @@ func (v *NullableCapability) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_capability_all_of.go b/pkg/api/ams/amsclient/model_capability_all_of.go similarity index 93% rename from pkg/apis/ams/amsclient/model_capability_all_of.go rename to pkg/api/ams/amsclient/model_capability_all_of.go index d204b4fee..689a1b4c8 100644 --- a/pkg/apis/ams/amsclient/model_capability_all_of.go +++ b/pkg/api/ams/amsclient/model_capability_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,9 +16,9 @@ import ( // CapabilityAllOf struct for CapabilityAllOf type CapabilityAllOf struct { - Inherited bool `json:"inherited"` - Name string `json:"name"` - Value string `json:"value"` + Inherited bool `json:"inherited"` + Name string `json:"name"` + Value string `json:"value"` } // NewCapabilityAllOf instantiates a new CapabilityAllOf object @@ -54,7 +54,7 @@ func (o *CapabilityAllOf) GetInherited() bool { // 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 { + if o == nil { return nil, false } return &o.Inherited, true @@ -78,7 +78,7 @@ func (o *CapabilityAllOf) GetName() string { // 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 { + if o == nil { return nil, false } return &o.Name, true @@ -102,7 +102,7 @@ func (o *CapabilityAllOf) GetValue() string { // 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 { + if o == nil { return nil, false } return &o.Value, true @@ -162,5 +162,3 @@ func (v *NullableCapabilityAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_capability_review.go b/pkg/api/ams/amsclient/model_capability_review.go similarity index 95% rename from pkg/apis/ams/amsclient/model_capability_review.go rename to pkg/api/ams/amsclient/model_capability_review.go index 9e1614212..e82f7c2cb 100644 --- a/pkg/apis/ams/amsclient/model_capability_review.go +++ b/pkg/api/ams/amsclient/model_capability_review.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -50,7 +50,7 @@ func (o *CapabilityReview) GetResult() string { // 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 { + if o == nil { return nil, false } return &o.Result, true @@ -104,5 +104,3 @@ func (v *NullableCapabilityReview) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_capability_review_request.go b/pkg/api/ams/amsclient/model_capability_review_request.go similarity index 93% rename from pkg/apis/ams/amsclient/model_capability_review_request.go rename to pkg/api/ams/amsclient/model_capability_review_request.go index ce39a2b1c..d824b7cf8 100644 --- a/pkg/apis/ams/amsclient/model_capability_review_request.go +++ b/pkg/api/ams/amsclient/model_capability_review_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,12 +16,12 @@ import ( // 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"` + 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 @@ -57,7 +57,7 @@ func (o *CapabilityReviewRequest) GetAccountUsername() string { // 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 { + if o == nil { return nil, false } return &o.AccountUsername, true @@ -81,7 +81,7 @@ func (o *CapabilityReviewRequest) GetCapability() string { // 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 { + if o == nil { return nil, false } return &o.Capability, true @@ -201,7 +201,7 @@ func (o *CapabilityReviewRequest) GetType() string { // 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 { + if o == nil { return nil, false } return &o.Type, true @@ -270,5 +270,3 @@ func (v *NullableCapabilityReviewRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_cluster_authorization_request.go b/pkg/api/ams/amsclient/model_cluster_authorization_request.go similarity index 93% rename from pkg/apis/ams/amsclient/model_cluster_authorization_request.go rename to pkg/api/ams/amsclient/model_cluster_authorization_request.go index db96aa41a..4ca594bce 100644 --- a/pkg/apis/ams/amsclient/model_cluster_authorization_request.go +++ b/pkg/api/ams/amsclient/model_cluster_authorization_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,20 +16,20 @@ import ( // 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"` - Reserve *bool `json:"reserve,omitempty"` - Resources *[]ReservedResource `json:"resources,omitempty"` + 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"` + Reserve *bool `json:"reserve,omitempty"` + Resources *[]ReservedResource `json:"resources,omitempty"` } // NewClusterAuthorizationRequest instantiates a new ClusterAuthorizationRequest object @@ -68,7 +68,7 @@ func (o *ClusterAuthorizationRequest) GetAccountUsername() string { // 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 { + if o == nil { return nil, false } return &o.AccountUsername, true @@ -220,7 +220,7 @@ func (o *ClusterAuthorizationRequest) GetClusterId() string { // 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 { + if o == nil { return nil, false } return &o.ClusterId, true @@ -569,5 +569,3 @@ func (v *NullableClusterAuthorizationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_cluster_authorization_response.go b/pkg/api/ams/amsclient/model_cluster_authorization_response.go similarity index 94% rename from pkg/apis/ams/amsclient/model_cluster_authorization_response.go rename to pkg/api/ams/amsclient/model_cluster_authorization_response.go index 6f06f4430..bb9a62e0c 100644 --- a/pkg/apis/ams/amsclient/model_cluster_authorization_response.go +++ b/pkg/api/ams/amsclient/model_cluster_authorization_response.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // ClusterAuthorizationResponse struct for ClusterAuthorizationResponse type ClusterAuthorizationResponse struct { - Allowed bool `json:"allowed"` + Allowed bool `json:"allowed"` ExcessResources []ExcessResource `json:"excess_resources"` - OrganizationId *string `json:"organization_id,omitempty"` - Subscription *ObjectReference `json:"subscription,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + Subscription *ObjectReference `json:"subscription,omitempty"` } // NewClusterAuthorizationResponse instantiates a new ClusterAuthorizationResponse object @@ -54,7 +54,7 @@ func (o *ClusterAuthorizationResponse) GetAllowed() bool { // 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 { + if o == nil { return nil, false } return &o.Allowed, true @@ -78,7 +78,7 @@ func (o *ClusterAuthorizationResponse) GetExcessResources() []ExcessResource { // 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 { + if o == nil { return nil, false } return &o.ExcessResources, true @@ -205,5 +205,3 @@ func (v *NullableClusterAuthorizationResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_cluster_metrics_nodes.go b/pkg/api/ams/amsclient/model_cluster_metrics_nodes.go similarity index 95% rename from pkg/apis/ams/amsclient/model_cluster_metrics_nodes.go rename to pkg/api/ams/amsclient/model_cluster_metrics_nodes.go index 1db267c03..1d7d7759f 100644 --- a/pkg/apis/ams/amsclient/model_cluster_metrics_nodes.go +++ b/pkg/api/ams/amsclient/model_cluster_metrics_nodes.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,9 +17,9 @@ import ( // 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"` + Infra *float64 `json:"infra,omitempty"` + Master *float64 `json:"master,omitempty"` + Total *float64 `json:"total,omitempty"` } // NewClusterMetricsNodes instantiates a new ClusterMetricsNodes object @@ -219,5 +219,3 @@ func (v *NullableClusterMetricsNodes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_cluster_registration_request.go b/pkg/api/ams/amsclient/model_cluster_registration_request.go similarity index 96% rename from pkg/apis/ams/amsclient/model_cluster_registration_request.go rename to pkg/api/ams/amsclient/model_cluster_registration_request.go index 9aac46e1b..ffcb0badd 100644 --- a/pkg/apis/ams/amsclient/model_cluster_registration_request.go +++ b/pkg/api/ams/amsclient/model_cluster_registration_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,7 +17,7 @@ import ( // ClusterRegistrationRequest struct for ClusterRegistrationRequest type ClusterRegistrationRequest struct { AuthorizationToken *string `json:"authorization_token,omitempty"` - ClusterId *string `json:"cluster_id,omitempty"` + ClusterId *string `json:"cluster_id,omitempty"` } // NewClusterRegistrationRequest instantiates a new ClusterRegistrationRequest object @@ -147,5 +147,3 @@ func (v *NullableClusterRegistrationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_cluster_registration_response.go b/pkg/api/ams/amsclient/model_cluster_registration_response.go similarity index 96% rename from pkg/apis/ams/amsclient/model_cluster_registration_response.go rename to pkg/api/ams/amsclient/model_cluster_registration_response.go index c4d92a495..cd3ad840e 100644 --- a/pkg/apis/ams/amsclient/model_cluster_registration_response.go +++ b/pkg/api/ams/amsclient/model_cluster_registration_response.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,9 +16,9 @@ import ( // ClusterRegistrationResponse struct for ClusterRegistrationResponse type ClusterRegistrationResponse struct { - AccountId *string `json:"account_id,omitempty"` + AccountId *string `json:"account_id,omitempty"` AuthorizationToken *string `json:"authorization_token,omitempty"` - ClusterId *string `json:"cluster_id,omitempty"` + ClusterId *string `json:"cluster_id,omitempty"` // Cluster Registration expiration in Unix time ExpiresAt *string `json:"expires_at,omitempty"` } @@ -220,5 +220,3 @@ func (v *NullableClusterRegistrationResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_cluster_resource.go b/pkg/api/ams/amsclient/model_cluster_resource.go similarity index 92% rename from pkg/apis/ams/amsclient/model_cluster_resource.go rename to pkg/api/ams/amsclient/model_cluster_resource.go index 2a47ea0ba..752262247 100644 --- a/pkg/apis/ams/amsclient/model_cluster_resource.go +++ b/pkg/api/ams/amsclient/model_cluster_resource.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,9 +17,9 @@ import ( // ClusterResource struct for ClusterResource type ClusterResource struct { - Total ClusterResourceTotal `json:"total"` - UpdatedTimestamp time.Time `json:"updated_timestamp"` - Used ClusterResourceTotal `json:"used"` + Total ClusterResourceTotal `json:"total"` + UpdatedTimestamp time.Time `json:"updated_timestamp"` + Used ClusterResourceTotal `json:"used"` } // NewClusterResource instantiates a new ClusterResource object @@ -55,7 +55,7 @@ func (o *ClusterResource) GetTotal() ClusterResourceTotal { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -79,7 +79,7 @@ func (o *ClusterResource) GetUpdatedTimestamp() time.Time { // 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 { + if o == nil { return nil, false } return &o.UpdatedTimestamp, true @@ -103,7 +103,7 @@ func (o *ClusterResource) GetUsed() ClusterResourceTotal { // 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 { + if o == nil { return nil, false } return &o.Used, true @@ -163,5 +163,3 @@ func (v *NullableClusterResource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_cluster_resource_total.go b/pkg/api/ams/amsclient/model_cluster_resource_total.go similarity index 94% rename from pkg/apis/ams/amsclient/model_cluster_resource_total.go rename to pkg/api/ams/amsclient/model_cluster_resource_total.go index e22526d60..c49e86c63 100644 --- a/pkg/apis/ams/amsclient/model_cluster_resource_total.go +++ b/pkg/api/ams/amsclient/model_cluster_resource_total.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,7 +16,7 @@ import ( // ClusterResourceTotal struct for ClusterResourceTotal type ClusterResourceTotal struct { - Unit string `json:"unit"` + Unit string `json:"unit"` Value float64 `json:"value"` } @@ -52,7 +52,7 @@ func (o *ClusterResourceTotal) GetUnit() string { // 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 { + if o == nil { return nil, false } return &o.Unit, true @@ -76,7 +76,7 @@ func (o *ClusterResourceTotal) GetValue() float64 { // 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 { + if o == nil { return nil, false } return &o.Value, true @@ -133,5 +133,3 @@ func (v *NullableClusterResourceTotal) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_cluster_upgrade.go b/pkg/api/ams/amsclient/model_cluster_upgrade.go similarity index 95% rename from pkg/apis/ams/amsclient/model_cluster_upgrade.go rename to pkg/api/ams/amsclient/model_cluster_upgrade.go index e56cac4a3..102a363fd 100644 --- a/pkg/apis/ams/amsclient/model_cluster_upgrade.go +++ b/pkg/api/ams/amsclient/model_cluster_upgrade.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,10 +17,10 @@ import ( // ClusterUpgrade struct for ClusterUpgrade type ClusterUpgrade struct { - Available *bool `json:"available,omitempty"` - State *string `json:"state,omitempty"` + Available *bool `json:"available,omitempty"` + State *string `json:"state,omitempty"` UpdatedTimestamp *time.Time `json:"updated_timestamp,omitempty"` - Version *string `json:"version,omitempty"` + Version *string `json:"version,omitempty"` } // NewClusterUpgrade instantiates a new ClusterUpgrade object @@ -220,5 +220,3 @@ func (v *NullableClusterUpgrade) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_ephemeral_resource_quota.go b/pkg/api/ams/amsclient/model_ephemeral_resource_quota.go similarity index 95% rename from pkg/apis/ams/amsclient/model_ephemeral_resource_quota.go rename to pkg/api/ams/amsclient/model_ephemeral_resource_quota.go index 75d82988c..60dd21d3f 100644 --- a/pkg/apis/ams/amsclient/model_ephemeral_resource_quota.go +++ b/pkg/api/ams/amsclient/model_ephemeral_resource_quota.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,13 +16,13 @@ import ( // EphemeralResourceQuota struct for EphemeralResourceQuota type EphemeralResourceQuota struct { - Allowed *int32 `json:"allowed,omitempty"` + Allowed *int32 `json:"allowed,omitempty"` 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"` + 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 @@ -327,5 +327,3 @@ func (v *NullableEphemeralResourceQuota) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_error.go b/pkg/api/ams/amsclient/model_error.go similarity index 95% rename from pkg/apis/ams/amsclient/model_error.go rename to pkg/api/ams/amsclient/model_error.go index 0e3c6651f..10a6e3e22 100644 --- a/pkg/apis/ams/amsclient/model_error.go +++ b/pkg/api/ams/amsclient/model_error.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,12 +16,12 @@ import ( // 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"` + 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"` + Reason *string `json:"reason,omitempty"` } // NewError instantiates a new Error object @@ -291,5 +291,3 @@ func (v *NullableError) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_error_all_of.go b/pkg/api/ams/amsclient/model_error_all_of.go similarity index 95% rename from pkg/apis/ams/amsclient/model_error_all_of.go rename to pkg/api/ams/amsclient/model_error_all_of.go index 015310ce4..89b62f961 100644 --- a/pkg/apis/ams/amsclient/model_error_all_of.go +++ b/pkg/api/ams/amsclient/model_error_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,9 +16,9 @@ import ( // ErrorAllOf struct for ErrorAllOf type ErrorAllOf struct { - Code *string `json:"code,omitempty"` + Code *string `json:"code,omitempty"` OperationId *string `json:"operation_id,omitempty"` - Reason *string `json:"reason,omitempty"` + Reason *string `json:"reason,omitempty"` } // NewErrorAllOf instantiates a new ErrorAllOf object @@ -183,5 +183,3 @@ func (v *NullableErrorAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_error_list.go b/pkg/api/ams/amsclient/model_error_list.go similarity index 93% rename from pkg/apis/ams/amsclient/model_error_list.go rename to pkg/api/ams/amsclient/model_error_list.go index fe3fec718..1d8617f4f 100644 --- a/pkg/apis/ams/amsclient/model_error_list.go +++ b/pkg/api/ams/amsclient/model_error_list.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // ErrorList struct for ErrorList type ErrorList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Error `json:"items"` } @@ -58,7 +58,7 @@ func (o *ErrorList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *ErrorList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *ErrorList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *ErrorList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *ErrorList) GetItems() []Error { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,5 +220,3 @@ func (v *NullableErrorList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_error_list_all_of.go b/pkg/api/ams/amsclient/model_error_list_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_error_list_all_of.go rename to pkg/api/ams/amsclient/model_error_list_all_of.go index dffcd9cca..ef89409a1 100644 --- a/pkg/apis/ams/amsclient/model_error_list_all_of.go +++ b/pkg/api/ams/amsclient/model_error_list_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullableErrorListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_excess_resource.go b/pkg/api/ams/amsclient/model_excess_resource.go similarity index 94% rename from pkg/apis/ams/amsclient/model_excess_resource.go rename to pkg/api/ams/amsclient/model_excess_resource.go index d88cf7f47..5e6c735fa 100644 --- a/pkg/apis/ams/amsclient/model_excess_resource.go +++ b/pkg/api/ams/amsclient/model_excess_resource.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,15 +16,15 @@ import ( // ExcessResource struct for ExcessResource type ExcessResource struct { - Href *string `json:"href,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` + 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"` + 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 @@ -218,7 +218,7 @@ func (o *ExcessResource) GetByoc() bool { // 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 { + if o == nil { return nil, false } return &o.Byoc, true @@ -392,5 +392,3 @@ func (v *NullableExcessResource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_excess_resource_all_of.go b/pkg/api/ams/amsclient/model_excess_resource_all_of.go similarity index 94% rename from pkg/apis/ams/amsclient/model_excess_resource_all_of.go rename to pkg/api/ams/amsclient/model_excess_resource_all_of.go index 80d479ae4..8cbb8e2f3 100644 --- a/pkg/apis/ams/amsclient/model_excess_resource_all_of.go +++ b/pkg/api/ams/amsclient/model_excess_resource_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,11 +17,11 @@ import ( // 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"` + 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 @@ -119,7 +119,7 @@ func (o *ExcessResourceAllOf) GetByoc() bool { // 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 { + if o == nil { return nil, false } return &o.Byoc, true @@ -284,5 +284,3 @@ func (v *NullableExcessResourceAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_export_control_review.go b/pkg/api/ams/amsclient/model_export_control_review.go similarity index 95% rename from pkg/apis/ams/amsclient/model_export_control_review.go rename to pkg/api/ams/amsclient/model_export_control_review.go index 1d04d0d47..12fc6870f 100644 --- a/pkg/apis/ams/amsclient/model_export_control_review.go +++ b/pkg/api/ams/amsclient/model_export_control_review.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -50,7 +50,7 @@ func (o *ExportControlReview) GetRestricted() bool { // 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 { + if o == nil { return nil, false } return &o.Restricted, true @@ -104,5 +104,3 @@ func (v *NullableExportControlReview) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_export_control_review_request.go b/pkg/api/ams/amsclient/model_export_control_review_request.go similarity index 95% rename from pkg/apis/ams/amsclient/model_export_control_review_request.go rename to pkg/api/ams/amsclient/model_export_control_review_request.go index 150f16687..ff828f9ca 100644 --- a/pkg/apis/ams/amsclient/model_export_control_review_request.go +++ b/pkg/api/ams/amsclient/model_export_control_review_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,7 +17,7 @@ import ( // ExportControlReviewRequest struct for ExportControlReviewRequest type ExportControlReviewRequest struct { AccountUsername string `json:"account_username"` - IgnoreCache *bool `json:"ignore_cache,omitempty"` + IgnoreCache *bool `json:"ignore_cache,omitempty"` } // NewExportControlReviewRequest instantiates a new ExportControlReviewRequest object @@ -51,7 +51,7 @@ func (o *ExportControlReviewRequest) GetAccountUsername() string { // 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 { + if o == nil { return nil, false } return &o.AccountUsername, true @@ -140,5 +140,3 @@ func (v *NullableExportControlReviewRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_feature_toggle.go b/pkg/api/ams/amsclient/model_feature_toggle.go similarity index 94% rename from pkg/apis/ams/amsclient/model_feature_toggle.go rename to pkg/api/ams/amsclient/model_feature_toggle.go index 521be8aec..66c7c53c9 100644 --- a/pkg/apis/ams/amsclient/model_feature_toggle.go +++ b/pkg/api/ams/amsclient/model_feature_toggle.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // 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"` + 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 @@ -151,7 +151,7 @@ func (o *FeatureToggle) GetEnabled() bool { // 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 { + if o == nil { return nil, false } return &o.Enabled, true @@ -214,5 +214,3 @@ func (v *NullableFeatureToggle) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_feature_toggle_all_of.go b/pkg/api/ams/amsclient/model_feature_toggle_all_of.go similarity index 95% rename from pkg/apis/ams/amsclient/model_feature_toggle_all_of.go rename to pkg/api/ams/amsclient/model_feature_toggle_all_of.go index c67745081..e5243e477 100644 --- a/pkg/apis/ams/amsclient/model_feature_toggle_all_of.go +++ b/pkg/api/ams/amsclient/model_feature_toggle_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -52,7 +52,7 @@ func (o *FeatureToggleAllOf) GetEnabled() bool { // 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 { + if o == nil { return nil, false } return &o.Enabled, true @@ -106,5 +106,3 @@ func (v *NullableFeatureToggleAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_feature_toggle_query_request.go b/pkg/api/ams/amsclient/model_feature_toggle_query_request.go similarity index 95% rename from pkg/apis/ams/amsclient/model_feature_toggle_query_request.go rename to pkg/api/ams/amsclient/model_feature_toggle_query_request.go index 425746624..97fbc09ba 100644 --- a/pkg/apis/ams/amsclient/model_feature_toggle_query_request.go +++ b/pkg/api/ams/amsclient/model_feature_toggle_query_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -50,7 +50,7 @@ func (o *FeatureToggleQueryRequest) GetOrganizationId() string { // 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 { + if o == nil { return nil, false } return &o.OrganizationId, true @@ -104,5 +104,3 @@ func (v *NullableFeatureToggleQueryRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_feature_toggle_query_request_all_of.go b/pkg/api/ams/amsclient/model_feature_toggle_query_request_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_feature_toggle_query_request_all_of.go rename to pkg/api/ams/amsclient/model_feature_toggle_query_request_all_of.go index 808061fb2..4afc8a716 100644 --- a/pkg/apis/ams/amsclient/model_feature_toggle_query_request_all_of.go +++ b/pkg/api/ams/amsclient/model_feature_toggle_query_request_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -50,7 +50,7 @@ func (o *FeatureToggleQueryRequestAllOf) GetOrganizationId() string { // 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 { + if o == nil { return nil, false } return &o.OrganizationId, true @@ -104,5 +104,3 @@ func (v *NullableFeatureToggleQueryRequestAllOf) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_label.go b/pkg/api/ams/amsclient/model_label.go similarity index 93% rename from pkg/apis/ams/amsclient/model_label.go rename to pkg/api/ams/amsclient/model_label.go index 0d04837dc..4e4d5dd83 100644 --- a/pkg/apis/ams/amsclient/model_label.go +++ b/pkg/api/ams/amsclient/model_label.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,18 +17,18 @@ import ( // 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"` + 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 @@ -224,7 +224,7 @@ func (o *Label) GetInternal() bool { // 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 { + if o == nil { return nil, false } return &o.Internal, true @@ -248,7 +248,7 @@ func (o *Label) GetKey() string { // 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 { + if o == nil { return nil, false } return &o.Key, true @@ -400,7 +400,7 @@ func (o *Label) GetValue() string { // 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 { + if o == nil { return nil, false } return &o.Value, true @@ -487,5 +487,3 @@ func (v *NullableLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_label_all_of.go b/pkg/api/ams/amsclient/model_label_all_of.go similarity index 93% rename from pkg/apis/ams/amsclient/model_label_all_of.go rename to pkg/api/ams/amsclient/model_label_all_of.go index 478475c3a..7c1a7661d 100644 --- a/pkg/apis/ams/amsclient/model_label_all_of.go +++ b/pkg/api/ams/amsclient/model_label_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,15 +17,15 @@ import ( // 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"` + 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 @@ -125,7 +125,7 @@ func (o *LabelAllOf) GetInternal() bool { // 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 { + if o == nil { return nil, false } return &o.Internal, true @@ -149,7 +149,7 @@ func (o *LabelAllOf) GetKey() string { // 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 { + if o == nil { return nil, false } return &o.Key, true @@ -301,7 +301,7 @@ func (o *LabelAllOf) GetValue() string { // 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 { + if o == nil { return nil, false } return &o.Value, true @@ -379,5 +379,3 @@ func (v *NullableLabelAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_label_list.go b/pkg/api/ams/amsclient/model_label_list.go similarity index 93% rename from pkg/apis/ams/amsclient/model_label_list.go rename to pkg/api/ams/amsclient/model_label_list.go index 13ad9ff77..9a560ada7 100644 --- a/pkg/apis/ams/amsclient/model_label_list.go +++ b/pkg/api/ams/amsclient/model_label_list.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // LabelList struct for LabelList type LabelList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Label `json:"items"` } @@ -58,7 +58,7 @@ func (o *LabelList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *LabelList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *LabelList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *LabelList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *LabelList) GetItems() []Label { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,5 +220,3 @@ func (v *NullableLabelList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_label_list_all_of.go b/pkg/api/ams/amsclient/model_label_list_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_label_list_all_of.go rename to pkg/api/ams/amsclient/model_label_list_all_of.go index e84f008d8..2cbc5dfd6 100644 --- a/pkg/apis/ams/amsclient/model_label_list_all_of.go +++ b/pkg/api/ams/amsclient/model_label_list_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullableLabelListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_list.go b/pkg/api/ams/amsclient/model_list.go similarity index 92% rename from pkg/apis/ams/amsclient/model_list.go rename to pkg/api/ams/amsclient/model_list.go index 4aff98f75..3693d0832 100644 --- a/pkg/apis/ams/amsclient/model_list.go +++ b/pkg/api/ams/amsclient/model_list.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // List struct for List type List struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` } // NewList instantiates a new List object @@ -56,7 +56,7 @@ func (o *List) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -80,7 +80,7 @@ func (o *List) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -104,7 +104,7 @@ func (o *List) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -128,7 +128,7 @@ func (o *List) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -191,5 +191,3 @@ func (v *NullableList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_metric.go b/pkg/api/ams/amsclient/model_metric.go similarity index 94% rename from pkg/apis/ams/amsclient/model_metric.go rename to pkg/api/ams/amsclient/model_metric.go index 62a0e20c8..78eba7a05 100644 --- a/pkg/apis/ams/amsclient/model_metric.go +++ b/pkg/api/ams/amsclient/model_metric.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,12 +17,12 @@ import ( // 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"` + 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"` } @@ -328,5 +328,3 @@ func (v *NullableMetric) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_metric_all_of.go b/pkg/api/ams/amsclient/model_metric_all_of.go similarity index 95% rename from pkg/apis/ams/amsclient/model_metric_all_of.go rename to pkg/api/ams/amsclient/model_metric_all_of.go index a855595e5..681bade37 100644 --- a/pkg/apis/ams/amsclient/model_metric_all_of.go +++ b/pkg/api/ams/amsclient/model_metric_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,10 +17,10 @@ import ( // 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"` + 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"` } @@ -256,5 +256,3 @@ func (v *NullableMetricAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_metrics_list.go b/pkg/api/ams/amsclient/model_metrics_list.go similarity index 93% rename from pkg/apis/ams/amsclient/model_metrics_list.go rename to pkg/api/ams/amsclient/model_metrics_list.go index aa8a57474..1c69cdb99 100644 --- a/pkg/apis/ams/amsclient/model_metrics_list.go +++ b/pkg/api/ams/amsclient/model_metrics_list.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // MetricsList struct for MetricsList type MetricsList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Metric `json:"items"` } @@ -58,7 +58,7 @@ func (o *MetricsList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *MetricsList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *MetricsList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *MetricsList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *MetricsList) GetItems() []Metric { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,5 +220,3 @@ func (v *NullableMetricsList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_metrics_list_all_of.go b/pkg/api/ams/amsclient/model_metrics_list_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_metrics_list_all_of.go rename to pkg/api/ams/amsclient/model_metrics_list_all_of.go index e484f5b16..8486887b2 100644 --- a/pkg/apis/ams/amsclient/model_metrics_list_all_of.go +++ b/pkg/api/ams/amsclient/model_metrics_list_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullableMetricsListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_notification_contact_create_request.go b/pkg/api/ams/amsclient/model_notification_contact_create_request.go similarity index 97% rename from pkg/apis/ams/amsclient/model_notification_contact_create_request.go rename to pkg/api/ams/amsclient/model_notification_contact_create_request.go index 32c54a1a2..71216d74f 100644 --- a/pkg/apis/ams/amsclient/model_notification_contact_create_request.go +++ b/pkg/api/ams/amsclient/model_notification_contact_create_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullableNotificationContactCreateRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_notification_request.go b/pkg/api/ams/amsclient/model_notification_request.go similarity index 92% rename from pkg/apis/ams/amsclient/model_notification_request.go rename to pkg/api/ams/amsclient/model_notification_request.go index b18a2e5f2..2800d5df8 100644 --- a/pkg/apis/ams/amsclient/model_notification_request.go +++ b/pkg/api/ams/amsclient/model_notification_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,14 +16,14 @@ import ( // 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"` - Subject string `json:"subject"` - SubscriptionId *string `json:"subscription_id,omitempty"` - TemplateName string `json:"template_name"` - TemplateParameters *[]TemplateParameter `json:"template_parameters,omitempty"` + 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"` + Subject string `json:"subject"` + SubscriptionId *string `json:"subscription_id,omitempty"` + TemplateName string `json:"template_name"` + TemplateParameters *[]TemplateParameter `json:"template_parameters,omitempty"` } // NewNotificationRequest instantiates a new NotificationRequest object @@ -186,7 +186,7 @@ func (o *NotificationRequest) GetSubject() string { // GetSubjectOk returns a tuple with the Subject field value // and a boolean to check if the value has been set. func (o *NotificationRequest) GetSubjectOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Subject, true @@ -242,7 +242,7 @@ func (o *NotificationRequest) GetTemplateName() string { // 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 { + if o == nil { return nil, false } return &o.TemplateName, true @@ -349,5 +349,3 @@ func (v *NullableNotificationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_object_reference.go b/pkg/api/ams/amsclient/model_object_reference.go similarity index 96% rename from pkg/apis/ams/amsclient/model_object_reference.go rename to pkg/api/ams/amsclient/model_object_reference.go index f895866f1..62220822e 100644 --- a/pkg/apis/ams/amsclient/model_object_reference.go +++ b/pkg/api/ams/amsclient/model_object_reference.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,7 +17,7 @@ import ( // ObjectReference struct for ObjectReference type ObjectReference struct { Href *string `json:"href,omitempty"` - Id *string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` Kind *string `json:"kind,omitempty"` } @@ -183,5 +183,3 @@ func (v *NullableObjectReference) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_one_metric.go b/pkg/api/ams/amsclient/model_one_metric.go similarity index 89% rename from pkg/apis/ams/amsclient/model_one_metric.go rename to pkg/api/ams/amsclient/model_one_metric.go index 87c809a01..937ab7321 100644 --- a/pkg/apis/ams/amsclient/model_one_metric.go +++ b/pkg/api/ams/amsclient/model_one_metric.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,29 +16,29 @@ import ( // OneMetric struct for OneMetric type OneMetric struct { - 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"` - OpenshiftVersion string `json:"openshift_version"` - OperatingSystem string `json:"operating_system"` - OperatorsConditionFailing float64 `json:"operators_condition_failing"` - 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"` + 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"` + OpenshiftVersion string `json:"openshift_version"` + OperatingSystem string `json:"operating_system"` + OperatorsConditionFailing float64 `json:"operators_condition_failing"` + 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 @@ -93,7 +93,7 @@ func (o *OneMetric) GetCloudProvider() string { // 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 { + if o == nil { return nil, false } return &o.CloudProvider, true @@ -117,7 +117,7 @@ func (o *OneMetric) GetClusterType() string { // 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 { + if o == nil { return nil, false } return &o.ClusterType, true @@ -141,7 +141,7 @@ func (o *OneMetric) GetComputeNodesCpu() ClusterResource { // 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 { + if o == nil { return nil, false } return &o.ComputeNodesCpu, true @@ -165,7 +165,7 @@ func (o *OneMetric) GetComputeNodesMemory() ClusterResource { // 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 { + if o == nil { return nil, false } return &o.ComputeNodesMemory, true @@ -189,7 +189,7 @@ func (o *OneMetric) GetComputeNodesSockets() ClusterResource { // 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 { + if o == nil { return nil, false } return &o.ComputeNodesSockets, true @@ -213,7 +213,7 @@ func (o *OneMetric) GetConsoleUrl() string { // 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 { + if o == nil { return nil, false } return &o.ConsoleUrl, true @@ -237,7 +237,7 @@ func (o *OneMetric) GetCpu() ClusterResource { // 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 { + if o == nil { return nil, false } return &o.Cpu, true @@ -261,7 +261,7 @@ func (o *OneMetric) GetCriticalAlertsFiring() float64 { // 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 { + if o == nil { return nil, false } return &o.CriticalAlertsFiring, true @@ -317,7 +317,7 @@ func (o *OneMetric) GetMemory() ClusterResource { // 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 { + if o == nil { return nil, false } return &o.Memory, true @@ -341,7 +341,7 @@ func (o *OneMetric) GetNodes() ClusterMetricsNodes { // 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 { + if o == nil { return nil, false } return &o.Nodes, true @@ -365,7 +365,7 @@ func (o *OneMetric) GetOpenshiftVersion() string { // 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 { + if o == nil { return nil, false } return &o.OpenshiftVersion, true @@ -389,7 +389,7 @@ func (o *OneMetric) GetOperatingSystem() string { // 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 { + if o == nil { return nil, false } return &o.OperatingSystem, true @@ -413,7 +413,7 @@ func (o *OneMetric) GetOperatorsConditionFailing() float64 { // 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 { + if o == nil { return nil, false } return &o.OperatorsConditionFailing, true @@ -437,7 +437,7 @@ func (o *OneMetric) GetRegion() string { // 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 { + if o == nil { return nil, false } return &o.Region, true @@ -461,7 +461,7 @@ func (o *OneMetric) GetSockets() ClusterResource { // 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 { + if o == nil { return nil, false } return &o.Sockets, true @@ -485,7 +485,7 @@ func (o *OneMetric) GetState() string { // 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 { + if o == nil { return nil, false } return &o.State, true @@ -509,7 +509,7 @@ func (o *OneMetric) GetStateDescription() string { // 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 { + if o == nil { return nil, false } return &o.StateDescription, true @@ -533,7 +533,7 @@ func (o *OneMetric) GetStorage() ClusterResource { // 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 { + if o == nil { return nil, false } return &o.Storage, true @@ -557,7 +557,7 @@ func (o *OneMetric) GetSubscriptionCpuTotal() float64 { // 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 { + if o == nil { return nil, false } return &o.SubscriptionCpuTotal, true @@ -581,7 +581,7 @@ func (o *OneMetric) GetSubscriptionObligationExists() float64 { // 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 { + if o == nil { return nil, false } return &o.SubscriptionObligationExists, true @@ -605,7 +605,7 @@ func (o *OneMetric) GetSubscriptionSocketTotal() float64 { // 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 { + if o == nil { return nil, false } return &o.SubscriptionSocketTotal, true @@ -629,7 +629,7 @@ func (o *OneMetric) GetUpgrade() ClusterUpgrade { // 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 { + if o == nil { return nil, false } return &o.Upgrade, true @@ -749,5 +749,3 @@ func (v *NullableOneMetric) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_organization.go b/pkg/api/ams/amsclient/model_organization.go similarity index 94% rename from pkg/apis/ams/amsclient/model_organization.go rename to pkg/api/ams/amsclient/model_organization.go index 40745744a..c484d7095 100644 --- a/pkg/apis/ams/amsclient/model_organization.go +++ b/pkg/api/ams/amsclient/model_organization.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,16 +17,16 @@ import ( // Organization struct for Organization type Organization struct { - Href *string `json:"href,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` + 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"` + 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 @@ -436,5 +436,3 @@ func (v *NullableOrganization) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_organization_all_of.go b/pkg/api/ams/amsclient/model_organization_all_of.go similarity index 94% rename from pkg/apis/ams/amsclient/model_organization_all_of.go rename to pkg/api/ams/amsclient/model_organization_all_of.go index b10b9b24e..47ea8dd9c 100644 --- a/pkg/apis/ams/amsclient/model_organization_all_of.go +++ b/pkg/api/ams/amsclient/model_organization_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -18,12 +18,12 @@ import ( // 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"` + 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 @@ -328,5 +328,3 @@ func (v *NullableOrganizationAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_organization_list.go b/pkg/api/ams/amsclient/model_organization_list.go similarity index 93% rename from pkg/apis/ams/amsclient/model_organization_list.go rename to pkg/api/ams/amsclient/model_organization_list.go index 2363562b0..2851057d6 100644 --- a/pkg/apis/ams/amsclient/model_organization_list.go +++ b/pkg/api/ams/amsclient/model_organization_list.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // OrganizationList struct for OrganizationList type OrganizationList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Organization `json:"items"` } @@ -58,7 +58,7 @@ func (o *OrganizationList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *OrganizationList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *OrganizationList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *OrganizationList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *OrganizationList) GetItems() []Organization { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,5 +220,3 @@ func (v *NullableOrganizationList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_organization_list_all_of.go b/pkg/api/ams/amsclient/model_organization_list_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_organization_list_all_of.go rename to pkg/api/ams/amsclient/model_organization_list_all_of.go index 90ecc6ac0..d589073f8 100644 --- a/pkg/apis/ams/amsclient/model_organization_list_all_of.go +++ b/pkg/api/ams/amsclient/model_organization_list_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullableOrganizationListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_organization_patch_request.go b/pkg/api/ams/amsclient/model_organization_patch_request.go similarity index 96% rename from pkg/apis/ams/amsclient/model_organization_patch_request.go rename to pkg/api/ams/amsclient/model_organization_patch_request.go index 3776c87fb..aa2fff4d8 100644 --- a/pkg/apis/ams/amsclient/model_organization_patch_request.go +++ b/pkg/api/ams/amsclient/model_organization_patch_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,8 +17,8 @@ import ( // 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"` + ExternalId *string `json:"external_id,omitempty"` + Name *string `json:"name,omitempty"` } // NewOrganizationPatchRequest instantiates a new OrganizationPatchRequest object @@ -183,5 +183,3 @@ func (v *NullableOrganizationPatchRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_permission.go b/pkg/api/ams/amsclient/model_permission.go similarity index 95% rename from pkg/apis/ams/amsclient/model_permission.go rename to pkg/api/ams/amsclient/model_permission.go index 77a2e41dd..b9b81b0d1 100644 --- a/pkg/apis/ams/amsclient/model_permission.go +++ b/pkg/api/ams/amsclient/model_permission.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,7 +16,7 @@ import ( // Permission struct for Permission type Permission struct { - Action *string `json:"action,omitempty"` + Action *string `json:"action,omitempty"` Resource *string `json:"resource,omitempty"` } @@ -147,5 +147,3 @@ func (v *NullablePermission) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_permission_all_of.go b/pkg/api/ams/amsclient/model_permission_all_of.go similarity index 95% rename from pkg/apis/ams/amsclient/model_permission_all_of.go rename to pkg/api/ams/amsclient/model_permission_all_of.go index 6d7535401..c916fcae7 100644 --- a/pkg/apis/ams/amsclient/model_permission_all_of.go +++ b/pkg/api/ams/amsclient/model_permission_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,7 +16,7 @@ import ( // PermissionAllOf struct for PermissionAllOf type PermissionAllOf struct { - Action *string `json:"action,omitempty"` + Action *string `json:"action,omitempty"` Resource *string `json:"resource,omitempty"` } @@ -147,5 +147,3 @@ func (v *NullablePermissionAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_permission_list.go b/pkg/api/ams/amsclient/model_permission_list.go similarity index 93% rename from pkg/apis/ams/amsclient/model_permission_list.go rename to pkg/api/ams/amsclient/model_permission_list.go index 6fa9360f2..3e4ed6994 100644 --- a/pkg/apis/ams/amsclient/model_permission_list.go +++ b/pkg/api/ams/amsclient/model_permission_list.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // PermissionList struct for PermissionList type PermissionList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Permission `json:"items"` } @@ -58,7 +58,7 @@ func (o *PermissionList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *PermissionList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *PermissionList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *PermissionList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *PermissionList) GetItems() []Permission { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,5 +220,3 @@ func (v *NullablePermissionList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_permission_list_all_of.go b/pkg/api/ams/amsclient/model_permission_list_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_permission_list_all_of.go rename to pkg/api/ams/amsclient/model_permission_list_all_of.go index 66f22b021..baf1df7e6 100644 --- a/pkg/apis/ams/amsclient/model_permission_list_all_of.go +++ b/pkg/api/ams/amsclient/model_permission_list_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullablePermissionListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_plan.go b/pkg/api/ams/amsclient/model_plan.go similarity index 95% rename from pkg/apis/ams/amsclient/model_plan.go rename to pkg/api/ams/amsclient/model_plan.go index 852a874e3..a3f966bcf 100644 --- a/pkg/apis/ams/amsclient/model_plan.go +++ b/pkg/api/ams/amsclient/model_plan.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,12 +16,12 @@ import ( // Plan struct for Plan type Plan struct { - Href *string `json:"href,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` + 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"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` } // NewPlan instantiates a new Plan object @@ -291,5 +291,3 @@ func (v *NullablePlan) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_plan_all_of.go b/pkg/api/ams/amsclient/model_plan_all_of.go similarity index 95% rename from pkg/apis/ams/amsclient/model_plan_all_of.go rename to pkg/api/ams/amsclient/model_plan_all_of.go index 7c696ccf0..66c83460d 100644 --- a/pkg/apis/ams/amsclient/model_plan_all_of.go +++ b/pkg/api/ams/amsclient/model_plan_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,8 +17,8 @@ import ( // PlanAllOf struct for PlanAllOf type PlanAllOf struct { Category *string `json:"category,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` } // NewPlanAllOf instantiates a new PlanAllOf object @@ -183,5 +183,3 @@ func (v *NullablePlanAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_plan_list.go b/pkg/api/ams/amsclient/model_plan_list.go similarity index 93% rename from pkg/apis/ams/amsclient/model_plan_list.go rename to pkg/api/ams/amsclient/model_plan_list.go index b5cef0cea..3bdc4d93a 100644 --- a/pkg/apis/ams/amsclient/model_plan_list.go +++ b/pkg/api/ams/amsclient/model_plan_list.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // PlanList struct for PlanList type PlanList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Plan `json:"items"` } @@ -58,7 +58,7 @@ func (o *PlanList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *PlanList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *PlanList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *PlanList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *PlanList) GetItems() []Plan { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,5 +220,3 @@ func (v *NullablePlanList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_plan_list_all_of.go b/pkg/api/ams/amsclient/model_plan_list_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_plan_list_all_of.go rename to pkg/api/ams/amsclient/model_plan_list_all_of.go index fa3ed75bf..c6ca3a644 100644 --- a/pkg/apis/ams/amsclient/model_plan_list_all_of.go +++ b/pkg/api/ams/amsclient/model_plan_list_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullablePlanListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_pull_secret_request.go b/pkg/api/ams/amsclient/model_pull_secret_request.go similarity index 95% rename from pkg/apis/ams/amsclient/model_pull_secret_request.go rename to pkg/api/ams/amsclient/model_pull_secret_request.go index 88a6ac139..25a2b8fea 100644 --- a/pkg/apis/ams/amsclient/model_pull_secret_request.go +++ b/pkg/api/ams/amsclient/model_pull_secret_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -50,7 +50,7 @@ func (o *PullSecretRequest) GetExternalResourceId() string { // 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 { + if o == nil { return nil, false } return &o.ExternalResourceId, true @@ -104,5 +104,3 @@ func (v *NullablePullSecretRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_quota_cost.go b/pkg/api/ams/amsclient/model_quota_cost.go similarity index 93% rename from pkg/apis/ams/amsclient/model_quota_cost.go rename to pkg/api/ams/amsclient/model_quota_cost.go index 6ea9af2bb..d1e611d0e 100644 --- a/pkg/apis/ams/amsclient/model_quota_cost.go +++ b/pkg/api/ams/amsclient/model_quota_cost.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,13 +16,13 @@ import ( // 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"` - Consumed int32 `json:"consumed"` - OrganizationId *string `json:"organization_id,omitempty"` - QuotaId string `json:"quota_id"` + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Allowed int32 `json:"allowed"` + Consumed int32 `json:"consumed"` + OrganizationId *string `json:"organization_id,omitempty"` + QuotaId string `json:"quota_id"` RelatedResources *[]RelatedResource `json:"related_resources,omitempty"` } @@ -155,7 +155,7 @@ func (o *QuotaCost) GetAllowed() int32 { // 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 { + if o == nil { return nil, false } return &o.Allowed, true @@ -179,7 +179,7 @@ func (o *QuotaCost) GetConsumed() int32 { // 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 { + if o == nil { return nil, false } return &o.Consumed, true @@ -235,7 +235,7 @@ func (o *QuotaCost) GetQuotaId() string { // 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 { + if o == nil { return nil, false } return &o.QuotaId, true @@ -342,5 +342,3 @@ func (v *NullableQuotaCost) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_quota_cost_all_of.go b/pkg/api/ams/amsclient/model_quota_cost_all_of.go similarity index 93% rename from pkg/apis/ams/amsclient/model_quota_cost_all_of.go rename to pkg/api/ams/amsclient/model_quota_cost_all_of.go index 426dd40a5..d16a237a2 100644 --- a/pkg/apis/ams/amsclient/model_quota_cost_all_of.go +++ b/pkg/api/ams/amsclient/model_quota_cost_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // QuotaCostAllOf struct for QuotaCostAllOf type QuotaCostAllOf struct { - Allowed int32 `json:"allowed"` - Consumed int32 `json:"consumed"` - OrganizationId *string `json:"organization_id,omitempty"` - QuotaId string `json:"quota_id"` + Allowed int32 `json:"allowed"` + Consumed int32 `json:"consumed"` + OrganizationId *string `json:"organization_id,omitempty"` + QuotaId string `json:"quota_id"` RelatedResources *[]RelatedResource `json:"related_resources,omitempty"` } @@ -56,7 +56,7 @@ func (o *QuotaCostAllOf) GetAllowed() int32 { // 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 { + if o == nil { return nil, false } return &o.Allowed, true @@ -80,7 +80,7 @@ func (o *QuotaCostAllOf) GetConsumed() int32 { // 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 { + if o == nil { return nil, false } return &o.Consumed, true @@ -136,7 +136,7 @@ func (o *QuotaCostAllOf) GetQuotaId() string { // 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 { + if o == nil { return nil, false } return &o.QuotaId, true @@ -234,5 +234,3 @@ func (v *NullableQuotaCostAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_quota_cost_list.go b/pkg/api/ams/amsclient/model_quota_cost_list.go similarity index 93% rename from pkg/apis/ams/amsclient/model_quota_cost_list.go rename to pkg/api/ams/amsclient/model_quota_cost_list.go index d0fbcaaa2..17c4800ae 100644 --- a/pkg/apis/ams/amsclient/model_quota_cost_list.go +++ b/pkg/api/ams/amsclient/model_quota_cost_list.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // QuotaCostList struct for QuotaCostList type QuotaCostList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []QuotaCost `json:"items"` } @@ -58,7 +58,7 @@ func (o *QuotaCostList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *QuotaCostList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *QuotaCostList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *QuotaCostList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *QuotaCostList) GetItems() []QuotaCost { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,5 +220,3 @@ func (v *NullableQuotaCostList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_quota_cost_list_all_of.go b/pkg/api/ams/amsclient/model_quota_cost_list_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_quota_cost_list_all_of.go rename to pkg/api/ams/amsclient/model_quota_cost_list_all_of.go index c1d60fcf8..fed9ae374 100644 --- a/pkg/apis/ams/amsclient/model_quota_cost_list_all_of.go +++ b/pkg/api/ams/amsclient/model_quota_cost_list_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullableQuotaCostListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_quota_summary.go b/pkg/api/ams/amsclient/model_quota_summary.go similarity index 92% rename from pkg/apis/ams/amsclient/model_quota_summary.go rename to pkg/api/ams/amsclient/model_quota_summary.go index 609e15e60..78606890e 100644 --- a/pkg/apis/ams/amsclient/model_quota_summary.go +++ b/pkg/api/ams/amsclient/model_quota_summary.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,16 +16,16 @@ import ( // QuotaSummary struct for QuotaSummary type QuotaSummary struct { - Href *string `json:"href,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Allowed int32 `json:"allowed"` - AvailabilityZoneType string `json:"availability_zone_type"` - Byoc bool `json:"byoc"` - OrganizationId *string `json:"organization_id,omitempty"` - Reserved int32 `json:"reserved"` - ResourceName string `json:"resource_name"` - ResourceType string `json:"resource_type"` + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Allowed int32 `json:"allowed"` + AvailabilityZoneType string `json:"availability_zone_type"` + Byoc bool `json:"byoc"` + OrganizationId *string `json:"organization_id,omitempty"` + Reserved int32 `json:"reserved"` + ResourceName string `json:"resource_name"` + ResourceType string `json:"resource_type"` } // NewQuotaSummary instantiates a new QuotaSummary object @@ -160,7 +160,7 @@ func (o *QuotaSummary) GetAllowed() int32 { // GetAllowedOk returns a tuple with the Allowed field value // and a boolean to check if the value has been set. func (o *QuotaSummary) GetAllowedOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Allowed, true @@ -184,7 +184,7 @@ func (o *QuotaSummary) GetAvailabilityZoneType() string { // GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field value // and a boolean to check if the value has been set. func (o *QuotaSummary) GetAvailabilityZoneTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AvailabilityZoneType, true @@ -208,7 +208,7 @@ func (o *QuotaSummary) GetByoc() bool { // GetByocOk returns a tuple with the Byoc field value // and a boolean to check if the value has been set. func (o *QuotaSummary) GetByocOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Byoc, true @@ -264,7 +264,7 @@ func (o *QuotaSummary) GetReserved() int32 { // GetReservedOk returns a tuple with the Reserved field value // and a boolean to check if the value has been set. func (o *QuotaSummary) GetReservedOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Reserved, true @@ -288,7 +288,7 @@ func (o *QuotaSummary) GetResourceName() string { // GetResourceNameOk returns a tuple with the ResourceName field value // and a boolean to check if the value has been set. func (o *QuotaSummary) GetResourceNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ResourceName, true @@ -312,7 +312,7 @@ func (o *QuotaSummary) GetResourceType() string { // GetResourceTypeOk returns a tuple with the ResourceType field value // and a boolean to check if the value has been set. func (o *QuotaSummary) GetResourceTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ResourceType, true @@ -393,5 +393,3 @@ func (v *NullableQuotaSummary) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_quota_summary_all_of.go b/pkg/api/ams/amsclient/model_quota_summary_all_of.go similarity index 92% rename from pkg/apis/ams/amsclient/model_quota_summary_all_of.go rename to pkg/api/ams/amsclient/model_quota_summary_all_of.go index 9d41d05d5..396d69484 100644 --- a/pkg/apis/ams/amsclient/model_quota_summary_all_of.go +++ b/pkg/api/ams/amsclient/model_quota_summary_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,13 +16,13 @@ import ( // QuotaSummaryAllOf struct for QuotaSummaryAllOf type QuotaSummaryAllOf struct { - Allowed int32 `json:"allowed"` - AvailabilityZoneType string `json:"availability_zone_type"` - Byoc bool `json:"byoc"` - OrganizationId *string `json:"organization_id,omitempty"` - Reserved int32 `json:"reserved"` - ResourceName string `json:"resource_name"` - ResourceType string `json:"resource_type"` + Allowed int32 `json:"allowed"` + AvailabilityZoneType string `json:"availability_zone_type"` + Byoc bool `json:"byoc"` + OrganizationId *string `json:"organization_id,omitempty"` + Reserved int32 `json:"reserved"` + ResourceName string `json:"resource_name"` + ResourceType string `json:"resource_type"` } // NewQuotaSummaryAllOf instantiates a new QuotaSummaryAllOf object @@ -61,7 +61,7 @@ func (o *QuotaSummaryAllOf) GetAllowed() int32 { // GetAllowedOk returns a tuple with the Allowed field value // and a boolean to check if the value has been set. func (o *QuotaSummaryAllOf) GetAllowedOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Allowed, true @@ -85,7 +85,7 @@ func (o *QuotaSummaryAllOf) GetAvailabilityZoneType() string { // GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field value // and a boolean to check if the value has been set. func (o *QuotaSummaryAllOf) GetAvailabilityZoneTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AvailabilityZoneType, true @@ -109,7 +109,7 @@ func (o *QuotaSummaryAllOf) GetByoc() bool { // GetByocOk returns a tuple with the Byoc field value // and a boolean to check if the value has been set. func (o *QuotaSummaryAllOf) GetByocOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Byoc, true @@ -165,7 +165,7 @@ func (o *QuotaSummaryAllOf) GetReserved() int32 { // GetReservedOk returns a tuple with the Reserved field value // and a boolean to check if the value has been set. func (o *QuotaSummaryAllOf) GetReservedOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Reserved, true @@ -189,7 +189,7 @@ func (o *QuotaSummaryAllOf) GetResourceName() string { // GetResourceNameOk returns a tuple with the ResourceName field value // and a boolean to check if the value has been set. func (o *QuotaSummaryAllOf) GetResourceNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ResourceName, true @@ -213,7 +213,7 @@ func (o *QuotaSummaryAllOf) GetResourceType() string { // GetResourceTypeOk returns a tuple with the ResourceType field value // and a boolean to check if the value has been set. func (o *QuotaSummaryAllOf) GetResourceTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ResourceType, true @@ -285,5 +285,3 @@ func (v *NullableQuotaSummaryAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_quota_summary_list.go b/pkg/api/ams/amsclient/model_quota_summary_list.go similarity index 93% rename from pkg/apis/ams/amsclient/model_quota_summary_list.go rename to pkg/api/ams/amsclient/model_quota_summary_list.go index ec8ca2b25..179f5d8ce 100644 --- a/pkg/apis/ams/amsclient/model_quota_summary_list.go +++ b/pkg/api/ams/amsclient/model_quota_summary_list.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // QuotaSummaryList struct for QuotaSummaryList type QuotaSummaryList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []QuotaSummary `json:"items"` } @@ -58,7 +58,7 @@ func (o *QuotaSummaryList) GetKind() string { // GetKindOk returns a tuple with the Kind field value // and a boolean to check if the value has been set. func (o *QuotaSummaryList) GetKindOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *QuotaSummaryList) GetPage() int32 { // GetPageOk returns a tuple with the Page field value // and a boolean to check if the value has been set. func (o *QuotaSummaryList) GetPageOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *QuotaSummaryList) GetSize() int32 { // GetSizeOk returns a tuple with the Size field value // and a boolean to check if the value has been set. func (o *QuotaSummaryList) GetSizeOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *QuotaSummaryList) GetTotal() int32 { // GetTotalOk returns a tuple with the Total field value // and a boolean to check if the value has been set. func (o *QuotaSummaryList) GetTotalOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *QuotaSummaryList) GetItems() []QuotaSummary { // GetItemsOk returns a tuple with the Items field value // and a boolean to check if the value has been set. func (o *QuotaSummaryList) GetItemsOk() (*[]QuotaSummary, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Items, true @@ -220,5 +220,3 @@ func (v *NullableQuotaSummaryList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_quota_summary_list_all_of.go b/pkg/api/ams/amsclient/model_quota_summary_list_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_quota_summary_list_all_of.go rename to pkg/api/ams/amsclient/model_quota_summary_list_all_of.go index 83d3aeece..b80fe0306 100644 --- a/pkg/apis/ams/amsclient/model_quota_summary_list_all_of.go +++ b/pkg/api/ams/amsclient/model_quota_summary_list_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullableQuotaSummaryListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_registry.go b/pkg/api/ams/amsclient/model_registry.go similarity index 94% rename from pkg/apis/ams/amsclient/model_registry.go rename to pkg/api/ams/amsclient/model_registry.go index 1ab37b7de..f9cde3009 100644 --- a/pkg/apis/ams/amsclient/model_registry.go +++ b/pkg/api/ams/amsclient/model_registry.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,17 +17,17 @@ import ( // 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"` + 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 @@ -472,5 +472,3 @@ func (v *NullableRegistry) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_registry_all_of.go b/pkg/api/ams/amsclient/model_registry_all_of.go similarity index 94% rename from pkg/apis/ams/amsclient/model_registry_all_of.go rename to pkg/api/ams/amsclient/model_registry_all_of.go index c51543fde..78ee54c42 100644 --- a/pkg/apis/ams/amsclient/model_registry_all_of.go +++ b/pkg/api/ams/amsclient/model_registry_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,14 +17,14 @@ import ( // 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"` + 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 @@ -364,5 +364,3 @@ func (v *NullableRegistryAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_registry_create_request.go b/pkg/api/ams/amsclient/model_registry_create_request.go similarity index 94% rename from pkg/apis/ams/amsclient/model_registry_create_request.go rename to pkg/api/ams/amsclient/model_registry_create_request.go index 13c98ea0d..a86215bf8 100644 --- a/pkg/apis/ams/amsclient/model_registry_create_request.go +++ b/pkg/api/ams/amsclient/model_registry_create_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,12 +16,12 @@ import ( // 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"` + 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 @@ -89,7 +89,7 @@ func (o *RegistryCreateRequest) GetName() string { // 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 { + if o == nil { return nil, false } return &o.Name, true @@ -177,7 +177,7 @@ func (o *RegistryCreateRequest) GetType() string { // 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 { + if o == nil { return nil, false } return &o.Type, true @@ -201,7 +201,7 @@ func (o *RegistryCreateRequest) GetUrl() string { // 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 { + if o == nil { return nil, false } return &o.Url, true @@ -270,5 +270,3 @@ func (v *NullableRegistryCreateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_registry_credential.go b/pkg/api/ams/amsclient/model_registry_credential.go similarity index 93% rename from pkg/apis/ams/amsclient/model_registry_credential.go rename to pkg/api/ams/amsclient/model_registry_credential.go index 1dee7af87..f115e7f4a 100644 --- a/pkg/apis/ams/amsclient/model_registry_credential.go +++ b/pkg/api/ams/amsclient/model_registry_credential.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,16 +17,16 @@ import ( // 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"` + 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 @@ -436,5 +436,3 @@ func (v *NullableRegistryCredential) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_registry_credential_all_of.go b/pkg/api/ams/amsclient/model_registry_credential_all_of.go similarity index 93% rename from pkg/apis/ams/amsclient/model_registry_credential_all_of.go rename to pkg/api/ams/amsclient/model_registry_credential_all_of.go index 1cfccfa0f..19a5fe84c 100644 --- a/pkg/apis/ams/amsclient/model_registry_credential_all_of.go +++ b/pkg/api/ams/amsclient/model_registry_credential_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,13 +17,13 @@ import ( // 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"` + 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 @@ -328,5 +328,3 @@ func (v *NullableRegistryCredentialAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_registry_credential_list.go b/pkg/api/ams/amsclient/model_registry_credential_list.go similarity index 93% rename from pkg/apis/ams/amsclient/model_registry_credential_list.go rename to pkg/api/ams/amsclient/model_registry_credential_list.go index 99a7026ca..590a06ea3 100644 --- a/pkg/apis/ams/amsclient/model_registry_credential_list.go +++ b/pkg/api/ams/amsclient/model_registry_credential_list.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // RegistryCredentialList struct for RegistryCredentialList type RegistryCredentialList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []RegistryCredential `json:"items"` } @@ -58,7 +58,7 @@ func (o *RegistryCredentialList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *RegistryCredentialList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *RegistryCredentialList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *RegistryCredentialList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *RegistryCredentialList) GetItems() []RegistryCredential { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,5 +220,3 @@ func (v *NullableRegistryCredentialList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_registry_credential_list_all_of.go b/pkg/api/ams/amsclient/model_registry_credential_list_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_registry_credential_list_all_of.go rename to pkg/api/ams/amsclient/model_registry_credential_list_all_of.go index 7575000b5..5c64aa734 100644 --- a/pkg/apis/ams/amsclient/model_registry_credential_list_all_of.go +++ b/pkg/api/ams/amsclient/model_registry_credential_list_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullableRegistryCredentialListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_registry_credential_patch_request.go b/pkg/api/ams/amsclient/model_registry_credential_patch_request.go similarity index 95% rename from pkg/apis/ams/amsclient/model_registry_credential_patch_request.go rename to pkg/api/ams/amsclient/model_registry_credential_patch_request.go index 630e3a50a..fb95df3cd 100644 --- a/pkg/apis/ams/amsclient/model_registry_credential_patch_request.go +++ b/pkg/api/ams/amsclient/model_registry_credential_patch_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,11 +16,11 @@ import ( // RegistryCredentialPatchRequest struct for RegistryCredentialPatchRequest type RegistryCredentialPatchRequest struct { - AccountId *string `json:"account_id,omitempty"` + 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"` + RegistryId *string `json:"registry_id,omitempty"` + Token *string `json:"token,omitempty"` + Username *string `json:"username,omitempty"` } // NewRegistryCredentialPatchRequest instantiates a new RegistryCredentialPatchRequest object @@ -255,5 +255,3 @@ func (v *NullableRegistryCredentialPatchRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_registry_list.go b/pkg/api/ams/amsclient/model_registry_list.go similarity index 93% rename from pkg/apis/ams/amsclient/model_registry_list.go rename to pkg/api/ams/amsclient/model_registry_list.go index 41fd24403..7eba923bb 100644 --- a/pkg/apis/ams/amsclient/model_registry_list.go +++ b/pkg/api/ams/amsclient/model_registry_list.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // RegistryList struct for RegistryList type RegistryList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Registry `json:"items"` } @@ -58,7 +58,7 @@ func (o *RegistryList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *RegistryList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *RegistryList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *RegistryList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *RegistryList) GetItems() []Registry { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,5 +220,3 @@ func (v *NullableRegistryList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_registry_list_all_of.go b/pkg/api/ams/amsclient/model_registry_list_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_registry_list_all_of.go rename to pkg/api/ams/amsclient/model_registry_list_all_of.go index fa31e2213..c7e59dde7 100644 --- a/pkg/apis/ams/amsclient/model_registry_list_all_of.go +++ b/pkg/api/ams/amsclient/model_registry_list_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullableRegistryListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_registry_request.go b/pkg/api/ams/amsclient/model_registry_request.go similarity index 94% rename from pkg/apis/ams/amsclient/model_registry_request.go rename to pkg/api/ams/amsclient/model_registry_request.go index 2d3690c9a..b202106fa 100644 --- a/pkg/apis/ams/amsclient/model_registry_request.go +++ b/pkg/api/ams/amsclient/model_registry_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,12 +16,12 @@ import ( // 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"` + 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 @@ -291,5 +291,3 @@ func (v *NullableRegistryRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_related_resource.go b/pkg/api/ams/amsclient/model_related_resource.go similarity index 92% rename from pkg/apis/ams/amsclient/model_related_resource.go rename to pkg/api/ams/amsclient/model_related_resource.go index 1a569bdf6..8d0782087 100644 --- a/pkg/apis/ams/amsclient/model_related_resource.go +++ b/pkg/api/ams/amsclient/model_related_resource.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,18 +16,18 @@ import ( // 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"` + 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 @@ -163,7 +163,7 @@ func (o *RelatedResource) GetAvailabilityZoneType() string { // 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 { + if o == nil { return nil, false } return &o.AvailabilityZoneType, true @@ -187,7 +187,7 @@ func (o *RelatedResource) GetBillingModel() string { // 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 { + if o == nil { return nil, false } return &o.BillingModel, true @@ -211,7 +211,7 @@ func (o *RelatedResource) GetByoc() string { // 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 { + if o == nil { return nil, false } return &o.Byoc, true @@ -235,7 +235,7 @@ func (o *RelatedResource) GetCloudProvider() string { // 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 { + if o == nil { return nil, false } return &o.CloudProvider, true @@ -259,7 +259,7 @@ func (o *RelatedResource) GetCost() int32 { // 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 { + if o == nil { return nil, false } return &o.Cost, true @@ -283,7 +283,7 @@ func (o *RelatedResource) GetProduct() string { // 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 { + if o == nil { return nil, false } return &o.Product, true @@ -371,7 +371,7 @@ func (o *RelatedResource) GetResourceType() string { // 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 { + if o == nil { return nil, false } return &o.ResourceType, true @@ -458,5 +458,3 @@ func (v *NullableRelatedResource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_related_resource_all_of.go b/pkg/api/ams/amsclient/model_related_resource_all_of.go similarity index 92% rename from pkg/apis/ams/amsclient/model_related_resource_all_of.go rename to pkg/api/ams/amsclient/model_related_resource_all_of.go index a4e05a77f..b0f90b550 100644 --- a/pkg/apis/ams/amsclient/model_related_resource_all_of.go +++ b/pkg/api/ams/amsclient/model_related_resource_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,15 +16,15 @@ import ( // 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"` + 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 @@ -64,7 +64,7 @@ func (o *RelatedResourceAllOf) GetAvailabilityZoneType() string { // 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 { + if o == nil { return nil, false } return &o.AvailabilityZoneType, true @@ -88,7 +88,7 @@ func (o *RelatedResourceAllOf) GetBillingModel() string { // 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 { + if o == nil { return nil, false } return &o.BillingModel, true @@ -112,7 +112,7 @@ func (o *RelatedResourceAllOf) GetByoc() string { // 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 { + if o == nil { return nil, false } return &o.Byoc, true @@ -136,7 +136,7 @@ func (o *RelatedResourceAllOf) GetCloudProvider() string { // 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 { + if o == nil { return nil, false } return &o.CloudProvider, true @@ -160,7 +160,7 @@ func (o *RelatedResourceAllOf) GetCost() int32 { // 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 { + if o == nil { return nil, false } return &o.Cost, true @@ -184,7 +184,7 @@ func (o *RelatedResourceAllOf) GetProduct() string { // 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 { + if o == nil { return nil, false } return &o.Product, true @@ -272,7 +272,7 @@ func (o *RelatedResourceAllOf) GetResourceType() string { // 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 { + if o == nil { return nil, false } return &o.ResourceType, true @@ -350,5 +350,3 @@ func (v *NullableRelatedResourceAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_reserved_resource.go b/pkg/api/ams/amsclient/model_reserved_resource.go similarity index 93% rename from pkg/apis/ams/amsclient/model_reserved_resource.go rename to pkg/api/ams/amsclient/model_reserved_resource.go index ad4d83886..1d844c8e6 100644 --- a/pkg/apis/ams/amsclient/model_reserved_resource.go +++ b/pkg/api/ams/amsclient/model_reserved_resource.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,19 +17,19 @@ import ( // 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"` - 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"` + 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"` + 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 @@ -223,7 +223,7 @@ func (o *ReservedResource) GetByoc() bool { // 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 { + if o == nil { return nil, false } return &o.Byoc, true @@ -537,5 +537,3 @@ func (v *NullableReservedResource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_reserved_resource_all_of.go b/pkg/api/ams/amsclient/model_reserved_resource_all_of.go similarity index 93% rename from pkg/apis/ams/amsclient/model_reserved_resource_all_of.go rename to pkg/api/ams/amsclient/model_reserved_resource_all_of.go index 7d3c30731..f6905a788 100644 --- a/pkg/apis/ams/amsclient/model_reserved_resource_all_of.go +++ b/pkg/api/ams/amsclient/model_reserved_resource_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,16 +17,16 @@ import ( // ReservedResourceAllOf struct for ReservedResourceAllOf type ReservedResourceAllOf struct { - AvailabilityZoneType *string `json:"availability_zone_type,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"` + AvailabilityZoneType *string `json:"availability_zone_type,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 @@ -124,7 +124,7 @@ func (o *ReservedResourceAllOf) GetByoc() bool { // 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 { + if o == nil { return nil, false } return &o.Byoc, true @@ -429,5 +429,3 @@ func (v *NullableReservedResourceAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_reserved_resource_list.go b/pkg/api/ams/amsclient/model_reserved_resource_list.go similarity index 93% rename from pkg/apis/ams/amsclient/model_reserved_resource_list.go rename to pkg/api/ams/amsclient/model_reserved_resource_list.go index 37a97601f..e0486c297 100644 --- a/pkg/apis/ams/amsclient/model_reserved_resource_list.go +++ b/pkg/api/ams/amsclient/model_reserved_resource_list.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // ReservedResourceList struct for ReservedResourceList type ReservedResourceList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []ReservedResource `json:"items"` } @@ -58,7 +58,7 @@ func (o *ReservedResourceList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *ReservedResourceList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *ReservedResourceList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *ReservedResourceList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *ReservedResourceList) GetItems() []ReservedResource { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,5 +220,3 @@ func (v *NullableReservedResourceList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_reserved_resource_list_all_of.go b/pkg/api/ams/amsclient/model_reserved_resource_list_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_reserved_resource_list_all_of.go rename to pkg/api/ams/amsclient/model_reserved_resource_list_all_of.go index 96582a30f..10e68d396 100644 --- a/pkg/apis/ams/amsclient/model_reserved_resource_list_all_of.go +++ b/pkg/api/ams/amsclient/model_reserved_resource_list_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullableReservedResourceListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_resource_quota.go b/pkg/api/ams/amsclient/model_resource_quota.go similarity index 92% rename from pkg/apis/ams/amsclient/model_resource_quota.go rename to pkg/api/ams/amsclient/model_resource_quota.go index 5ef44589a..c71abbee0 100644 --- a/pkg/apis/ams/amsclient/model_resource_quota.go +++ b/pkg/api/ams/amsclient/model_resource_quota.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,20 +17,20 @@ import ( // ResourceQuota struct for ResourceQuota type ResourceQuota struct { - Href *string `json:"href,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Allowed int32 `json:"allowed"` - AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` - Byoc bool `json:"byoc"` - CreatedAt *time.Time `json:"created_at,omitempty"` - OrganizationId *string `json:"organization_id,omitempty"` - ResourceName string `json:"resource_name"` - ResourceType string `json:"resource_type"` - Sku *string `json:"sku,omitempty"` - SkuCount *int32 `json:"sku_count,omitempty"` - Type *string `json:"type,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Allowed int32 `json:"allowed"` + AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` + Byoc bool `json:"byoc"` + CreatedAt *time.Time `json:"created_at,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + ResourceName string `json:"resource_name"` + ResourceType string `json:"resource_type"` + Sku *string `json:"sku,omitempty"` + SkuCount *int32 `json:"sku_count,omitempty"` + Type *string `json:"type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` } // NewResourceQuota instantiates a new ResourceQuota object @@ -163,7 +163,7 @@ func (o *ResourceQuota) GetAllowed() int32 { // GetAllowedOk returns a tuple with the Allowed field value // and a boolean to check if the value has been set. func (o *ResourceQuota) GetAllowedOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Allowed, true @@ -219,7 +219,7 @@ func (o *ResourceQuota) GetByoc() bool { // GetByocOk returns a tuple with the Byoc field value // and a boolean to check if the value has been set. func (o *ResourceQuota) GetByocOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Byoc, true @@ -307,7 +307,7 @@ func (o *ResourceQuota) GetResourceName() string { // GetResourceNameOk returns a tuple with the ResourceName field value // and a boolean to check if the value has been set. func (o *ResourceQuota) GetResourceNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ResourceName, true @@ -331,7 +331,7 @@ func (o *ResourceQuota) GetResourceType() string { // GetResourceTypeOk returns a tuple with the ResourceType field value // and a boolean to check if the value has been set. func (o *ResourceQuota) GetResourceTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ResourceType, true @@ -552,5 +552,3 @@ func (v *NullableResourceQuota) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_resource_quota_all_of.go b/pkg/api/ams/amsclient/model_resource_quota_all_of.go similarity index 93% rename from pkg/apis/ams/amsclient/model_resource_quota_all_of.go rename to pkg/api/ams/amsclient/model_resource_quota_all_of.go index f1d483642..9482af699 100644 --- a/pkg/apis/ams/amsclient/model_resource_quota_all_of.go +++ b/pkg/api/ams/amsclient/model_resource_quota_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,17 +17,17 @@ import ( // ResourceQuotaAllOf struct for ResourceQuotaAllOf type ResourceQuotaAllOf struct { - Allowed int32 `json:"allowed"` - AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` - Byoc bool `json:"byoc"` - CreatedAt *time.Time `json:"created_at,omitempty"` - OrganizationId *string `json:"organization_id,omitempty"` - ResourceName string `json:"resource_name"` - ResourceType string `json:"resource_type"` - Sku *string `json:"sku,omitempty"` - SkuCount *int32 `json:"sku_count,omitempty"` - Type *string `json:"type,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` + Allowed int32 `json:"allowed"` + AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` + Byoc bool `json:"byoc"` + CreatedAt *time.Time `json:"created_at,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + ResourceName string `json:"resource_name"` + ResourceType string `json:"resource_type"` + Sku *string `json:"sku,omitempty"` + SkuCount *int32 `json:"sku_count,omitempty"` + Type *string `json:"type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` } // NewResourceQuotaAllOf instantiates a new ResourceQuotaAllOf object @@ -64,7 +64,7 @@ func (o *ResourceQuotaAllOf) GetAllowed() int32 { // GetAllowedOk returns a tuple with the Allowed field value // and a boolean to check if the value has been set. func (o *ResourceQuotaAllOf) GetAllowedOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Allowed, true @@ -120,7 +120,7 @@ func (o *ResourceQuotaAllOf) GetByoc() bool { // GetByocOk returns a tuple with the Byoc field value // and a boolean to check if the value has been set. func (o *ResourceQuotaAllOf) GetByocOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Byoc, true @@ -208,7 +208,7 @@ func (o *ResourceQuotaAllOf) GetResourceName() string { // GetResourceNameOk returns a tuple with the ResourceName field value // and a boolean to check if the value has been set. func (o *ResourceQuotaAllOf) GetResourceNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ResourceName, true @@ -232,7 +232,7 @@ func (o *ResourceQuotaAllOf) GetResourceType() string { // GetResourceTypeOk returns a tuple with the ResourceType field value // and a boolean to check if the value has been set. func (o *ResourceQuotaAllOf) GetResourceTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ResourceType, true @@ -444,5 +444,3 @@ func (v *NullableResourceQuotaAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_resource_quota_list.go b/pkg/api/ams/amsclient/model_resource_quota_list.go similarity index 93% rename from pkg/apis/ams/amsclient/model_resource_quota_list.go rename to pkg/api/ams/amsclient/model_resource_quota_list.go index 576cf0b8a..8b08852ca 100644 --- a/pkg/apis/ams/amsclient/model_resource_quota_list.go +++ b/pkg/api/ams/amsclient/model_resource_quota_list.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // ResourceQuotaList struct for ResourceQuotaList type ResourceQuotaList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []ResourceQuota `json:"items"` } @@ -58,7 +58,7 @@ func (o *ResourceQuotaList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *ResourceQuotaList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *ResourceQuotaList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *ResourceQuotaList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *ResourceQuotaList) GetItems() []ResourceQuota { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,5 +220,3 @@ func (v *NullableResourceQuotaList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_resource_quota_list_all_of.go b/pkg/api/ams/amsclient/model_resource_quota_list_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_resource_quota_list_all_of.go rename to pkg/api/ams/amsclient/model_resource_quota_list_all_of.go index b09be4d2f..43883a808 100644 --- a/pkg/apis/ams/amsclient/model_resource_quota_list_all_of.go +++ b/pkg/api/ams/amsclient/model_resource_quota_list_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullableResourceQuotaListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_resource_quota_request.go b/pkg/api/ams/amsclient/model_resource_quota_request.go similarity index 94% rename from pkg/apis/ams/amsclient/model_resource_quota_request.go rename to pkg/api/ams/amsclient/model_resource_quota_request.go index 36ac318d0..ca08d746d 100644 --- a/pkg/apis/ams/amsclient/model_resource_quota_request.go +++ b/pkg/api/ams/amsclient/model_resource_quota_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // ResourceQuotaRequest struct for ResourceQuotaRequest type ResourceQuotaRequest struct { - Allowed *int32 `json:"allowed,omitempty"` - Sku string `json:"sku"` - SkuCount *int32 `json:"sku_count,omitempty"` - Type *string `json:"type,omitempty"` + Allowed *int32 `json:"allowed,omitempty"` + Sku string `json:"sku"` + SkuCount *int32 `json:"sku_count,omitempty"` + Type *string `json:"type,omitempty"` } // NewResourceQuotaRequest instantiates a new ResourceQuotaRequest object @@ -85,7 +85,7 @@ func (o *ResourceQuotaRequest) GetSku() string { // 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 { + if o == nil { return nil, false } return &o.Sku, true @@ -212,5 +212,3 @@ func (v *NullableResourceQuotaRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_resource_review.go b/pkg/api/ams/amsclient/model_resource_review.go similarity index 93% rename from pkg/apis/ams/amsclient/model_resource_review.go rename to pkg/api/ams/amsclient/model_resource_review.go index 7e83605f8..d452fcf55 100644 --- a/pkg/apis/ams/amsclient/model_resource_review.go +++ b/pkg/api/ams/amsclient/model_resource_review.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,12 +16,12 @@ import ( // 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"` + 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"` + ResourceType string `json:"resource_type"` SubscriptionIds []string `json:"subscription_ids"` } @@ -62,7 +62,7 @@ func (o *ResourceReview) GetAccountUsername() string { // 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 { + if o == nil { return nil, false } return &o.AccountUsername, true @@ -86,7 +86,7 @@ func (o *ResourceReview) GetAction() string { // 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 { + if o == nil { return nil, false } return &o.Action, true @@ -110,7 +110,7 @@ func (o *ResourceReview) GetClusterIds() []string { // 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 { + if o == nil { return nil, false } return &o.ClusterIds, true @@ -134,7 +134,7 @@ func (o *ResourceReview) GetClusterUuids() []string { // 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 { + if o == nil { return nil, false } return &o.ClusterUuids, true @@ -158,7 +158,7 @@ func (o *ResourceReview) GetOrganizationIds() []string { // 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 { + if o == nil { return nil, false } return &o.OrganizationIds, true @@ -182,7 +182,7 @@ func (o *ResourceReview) GetResourceType() string { // 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 { + if o == nil { return nil, false } return &o.ResourceType, true @@ -206,7 +206,7 @@ func (o *ResourceReview) GetSubscriptionIds() []string { // 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 { + if o == nil { return nil, false } return &o.SubscriptionIds, true @@ -278,5 +278,3 @@ func (v *NullableResourceReview) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_resource_review_request.go b/pkg/api/ams/amsclient/model_resource_review_request.go similarity index 95% rename from pkg/apis/ams/amsclient/model_resource_review_request.go rename to pkg/api/ams/amsclient/model_resource_review_request.go index 32edaa0f8..f0d57db77 100644 --- a/pkg/apis/ams/amsclient/model_resource_review_request.go +++ b/pkg/api/ams/amsclient/model_resource_review_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,8 +17,8 @@ import ( // ResourceReviewRequest struct for ResourceReviewRequest type ResourceReviewRequest struct { AccountUsername *string `json:"account_username,omitempty"` - Action *string `json:"action,omitempty"` - ResourceType *string `json:"resource_type,omitempty"` + Action *string `json:"action,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` } // NewResourceReviewRequest instantiates a new ResourceReviewRequest object @@ -183,5 +183,3 @@ func (v *NullableResourceReviewRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_role.go b/pkg/api/ams/amsclient/model_role.go similarity index 94% rename from pkg/apis/ams/amsclient/model_role.go rename to pkg/api/ams/amsclient/model_role.go index 62f254293..41f1188cd 100644 --- a/pkg/apis/ams/amsclient/model_role.go +++ b/pkg/api/ams/amsclient/model_role.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // 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"` + 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"` } @@ -255,5 +255,3 @@ func (v *NullableRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_role_all_of.go b/pkg/api/ams/amsclient/model_role_all_of.go similarity index 95% rename from pkg/apis/ams/amsclient/model_role_all_of.go rename to pkg/api/ams/amsclient/model_role_all_of.go index d67eedcec..b6886f560 100644 --- a/pkg/apis/ams/amsclient/model_role_all_of.go +++ b/pkg/api/ams/amsclient/model_role_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,7 +16,7 @@ import ( // RoleAllOf struct for RoleAllOf type RoleAllOf struct { - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Permissions *[]Permission `json:"permissions,omitempty"` } @@ -147,5 +147,3 @@ func (v *NullableRoleAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_role_binding.go b/pkg/api/ams/amsclient/model_role_binding.go similarity index 93% rename from pkg/apis/ams/amsclient/model_role_binding.go rename to pkg/api/ams/amsclient/model_role_binding.go index a3d3a19e7..607b29d82 100644 --- a/pkg/apis/ams/amsclient/model_role_binding.go +++ b/pkg/api/ams/amsclient/model_role_binding.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,17 +17,17 @@ import ( // 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"` - ConfigManaged *bool `json:"config_managed,omitempty"` - CreatedAt *time.Time `json:"created_at,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"` + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Account *ObjectReference `json:"account,omitempty"` + ConfigManaged *bool `json:"config_managed,omitempty"` + CreatedAt *time.Time `json:"created_at,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 @@ -472,5 +472,3 @@ func (v *NullableRoleBinding) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_role_binding_all_of.go b/pkg/api/ams/amsclient/model_role_binding_all_of.go similarity index 94% rename from pkg/apis/ams/amsclient/model_role_binding_all_of.go rename to pkg/api/ams/amsclient/model_role_binding_all_of.go index 624e978f1..e51796284 100644 --- a/pkg/apis/ams/amsclient/model_role_binding_all_of.go +++ b/pkg/api/ams/amsclient/model_role_binding_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,14 +17,14 @@ import ( // RoleBindingAllOf struct for RoleBindingAllOf type RoleBindingAllOf struct { - Account *ObjectReference `json:"account,omitempty"` - ConfigManaged *bool `json:"config_managed,omitempty"` - CreatedAt *time.Time `json:"created_at,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"` + Account *ObjectReference `json:"account,omitempty"` + ConfigManaged *bool `json:"config_managed,omitempty"` + CreatedAt *time.Time `json:"created_at,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 @@ -364,5 +364,3 @@ func (v *NullableRoleBindingAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_role_binding_create_request.go b/pkg/api/ams/amsclient/model_role_binding_create_request.go similarity index 95% rename from pkg/apis/ams/amsclient/model_role_binding_create_request.go rename to pkg/api/ams/amsclient/model_role_binding_create_request.go index 0e6ef3b45..d6d01ce54 100644 --- a/pkg/apis/ams/amsclient/model_role_binding_create_request.go +++ b/pkg/api/ams/amsclient/model_role_binding_create_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,12 +16,12 @@ import ( // RoleBindingCreateRequest struct for RoleBindingCreateRequest type RoleBindingCreateRequest struct { - AccountId string `json:"account_id"` - ConfigManaged *bool `json:"config_managed,omitempty"` + AccountId string `json:"account_id"` + ConfigManaged *bool `json:"config_managed,omitempty"` OrganizationId *string `json:"organization_id,omitempty"` - RoleId string `json:"role_id"` + RoleId string `json:"role_id"` SubscriptionId *string `json:"subscription_id,omitempty"` - Type string `json:"type"` + Type string `json:"type"` } // NewRoleBindingCreateRequest instantiates a new RoleBindingCreateRequest object @@ -57,7 +57,7 @@ func (o *RoleBindingCreateRequest) GetAccountId() string { // GetAccountIdOk returns a tuple with the AccountId field value // and a boolean to check if the value has been set. func (o *RoleBindingCreateRequest) GetAccountIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccountId, true @@ -145,7 +145,7 @@ func (o *RoleBindingCreateRequest) GetRoleId() string { // 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 { + if o == nil { return nil, false } return &o.RoleId, true @@ -201,7 +201,7 @@ func (o *RoleBindingCreateRequest) GetType() string { // 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 { + if o == nil { return nil, false } return &o.Type, true @@ -270,5 +270,3 @@ func (v *NullableRoleBindingCreateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_role_binding_list.go b/pkg/api/ams/amsclient/model_role_binding_list.go similarity index 93% rename from pkg/apis/ams/amsclient/model_role_binding_list.go rename to pkg/api/ams/amsclient/model_role_binding_list.go index 49f016341..cbc944a3f 100644 --- a/pkg/apis/ams/amsclient/model_role_binding_list.go +++ b/pkg/api/ams/amsclient/model_role_binding_list.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // RoleBindingList struct for RoleBindingList type RoleBindingList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []RoleBinding `json:"items"` } @@ -58,7 +58,7 @@ func (o *RoleBindingList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *RoleBindingList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *RoleBindingList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *RoleBindingList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *RoleBindingList) GetItems() []RoleBinding { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,5 +220,3 @@ func (v *NullableRoleBindingList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_role_binding_list_all_of.go b/pkg/api/ams/amsclient/model_role_binding_list_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_role_binding_list_all_of.go rename to pkg/api/ams/amsclient/model_role_binding_list_all_of.go index 4637abf42..1047e174a 100644 --- a/pkg/apis/ams/amsclient/model_role_binding_list_all_of.go +++ b/pkg/api/ams/amsclient/model_role_binding_list_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullableRoleBindingListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_role_binding_request.go b/pkg/api/ams/amsclient/model_role_binding_request.go similarity index 96% rename from pkg/apis/ams/amsclient/model_role_binding_request.go rename to pkg/api/ams/amsclient/model_role_binding_request.go index 2426953a4..823331e86 100644 --- a/pkg/apis/ams/amsclient/model_role_binding_request.go +++ b/pkg/api/ams/amsclient/model_role_binding_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,12 +16,12 @@ import ( // RoleBindingRequest struct for RoleBindingRequest type RoleBindingRequest struct { - AccountId *string `json:"account_id,omitempty"` - ConfigManaged *bool `json:"config_managed,omitempty"` + AccountId *string `json:"account_id,omitempty"` + ConfigManaged *bool `json:"config_managed,omitempty"` OrganizationId *string `json:"organization_id,omitempty"` - RoleId *string `json:"role_id,omitempty"` + RoleId *string `json:"role_id,omitempty"` SubscriptionId *string `json:"subscription_id,omitempty"` - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` } // NewRoleBindingRequest instantiates a new RoleBindingRequest object @@ -291,5 +291,3 @@ func (v *NullableRoleBindingRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_role_list.go b/pkg/api/ams/amsclient/model_role_list.go similarity index 93% rename from pkg/apis/ams/amsclient/model_role_list.go rename to pkg/api/ams/amsclient/model_role_list.go index bd70ef96c..c2a9d5969 100644 --- a/pkg/apis/ams/amsclient/model_role_list.go +++ b/pkg/api/ams/amsclient/model_role_list.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // RoleList struct for RoleList type RoleList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Role `json:"items"` } @@ -58,7 +58,7 @@ func (o *RoleList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *RoleList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *RoleList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *RoleList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *RoleList) GetItems() []Role { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,5 +220,3 @@ func (v *NullableRoleList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_role_list_all_of.go b/pkg/api/ams/amsclient/model_role_list_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_role_list_all_of.go rename to pkg/api/ams/amsclient/model_role_list_all_of.go index 508edf943..943c76b60 100644 --- a/pkg/apis/ams/amsclient/model_role_list_all_of.go +++ b/pkg/api/ams/amsclient/model_role_list_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullableRoleListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_self_access_review.go b/pkg/api/ams/amsclient/model_self_access_review.go similarity index 95% rename from pkg/apis/ams/amsclient/model_self_access_review.go rename to pkg/api/ams/amsclient/model_self_access_review.go index 2d8148173..0a3bb6ea9 100644 --- a/pkg/apis/ams/amsclient/model_self_access_review.go +++ b/pkg/api/ams/amsclient/model_self_access_review.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,11 +16,11 @@ import ( // SelfAccessReview struct for SelfAccessReview type SelfAccessReview struct { - Action string `json:"action"` - ClusterId *string `json:"cluster_id,omitempty"` - ClusterUuid *string `json:"cluster_uuid,omitempty"` + 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"` + ResourceType string `json:"resource_type"` SubscriptionId *string `json:"subscription_id,omitempty"` } @@ -56,7 +56,7 @@ func (o *SelfAccessReview) GetAction() string { // 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 { + if o == nil { return nil, false } return &o.Action, true @@ -176,7 +176,7 @@ func (o *SelfAccessReview) GetResourceType() string { // 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 { + if o == nil { return nil, false } return &o.ResourceType, true @@ -277,5 +277,3 @@ func (v *NullableSelfAccessReview) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_self_resource_review.go b/pkg/api/ams/amsclient/model_self_resource_review.go similarity index 93% rename from pkg/apis/ams/amsclient/model_self_resource_review.go rename to pkg/api/ams/amsclient/model_self_resource_review.go index 8ca28561e..f77f44649 100644 --- a/pkg/apis/ams/amsclient/model_self_resource_review.go +++ b/pkg/api/ams/amsclient/model_self_resource_review.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,11 +16,11 @@ import ( // SelfResourceReview struct for SelfResourceReview type SelfResourceReview struct { - Action string `json:"action"` - ClusterIds []string `json:"cluster_ids"` - ClusterUuids []string `json:"cluster_uuids"` + Action string `json:"action"` + ClusterIds []string `json:"cluster_ids"` + ClusterUuids []string `json:"cluster_uuids"` OrganizationIds []string `json:"organization_ids"` - ResourceType string `json:"resource_type"` + ResourceType string `json:"resource_type"` SubscriptionIds []string `json:"subscription_ids"` } @@ -60,7 +60,7 @@ func (o *SelfResourceReview) GetAction() string { // 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 { + if o == nil { return nil, false } return &o.Action, true @@ -84,7 +84,7 @@ func (o *SelfResourceReview) GetClusterIds() []string { // 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 { + if o == nil { return nil, false } return &o.ClusterIds, true @@ -108,7 +108,7 @@ func (o *SelfResourceReview) GetClusterUuids() []string { // 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 { + if o == nil { return nil, false } return &o.ClusterUuids, true @@ -132,7 +132,7 @@ func (o *SelfResourceReview) GetOrganizationIds() []string { // 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 { + if o == nil { return nil, false } return &o.OrganizationIds, true @@ -156,7 +156,7 @@ func (o *SelfResourceReview) GetResourceType() string { // 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 { + if o == nil { return nil, false } return &o.ResourceType, true @@ -180,7 +180,7 @@ func (o *SelfResourceReview) GetSubscriptionIds() []string { // 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 { + if o == nil { return nil, false } return &o.SubscriptionIds, true @@ -249,5 +249,3 @@ func (v *NullableSelfResourceReview) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_self_resource_review_request.go b/pkg/api/ams/amsclient/model_self_resource_review_request.go similarity index 96% rename from pkg/apis/ams/amsclient/model_self_resource_review_request.go rename to pkg/api/ams/amsclient/model_self_resource_review_request.go index f444e0192..dbd6db822 100644 --- a/pkg/apis/ams/amsclient/model_self_resource_review_request.go +++ b/pkg/api/ams/amsclient/model_self_resource_review_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,7 +16,7 @@ import ( // SelfResourceReviewRequest struct for SelfResourceReviewRequest type SelfResourceReviewRequest struct { - Action *string `json:"action,omitempty"` + Action *string `json:"action,omitempty"` ResourceType *string `json:"resource_type,omitempty"` } @@ -147,5 +147,3 @@ func (v *NullableSelfResourceReviewRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_self_terms_review.go b/pkg/api/ams/amsclient/model_self_terms_review.go similarity index 95% rename from pkg/apis/ams/amsclient/model_self_terms_review.go rename to pkg/api/ams/amsclient/model_self_terms_review.go index 1f8247644..9616f2261 100644 --- a/pkg/apis/ams/amsclient/model_self_terms_review.go +++ b/pkg/api/ams/amsclient/model_self_terms_review.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,7 +17,7 @@ import ( // SelfTermsReview struct for SelfTermsReview type SelfTermsReview struct { EventCode *string `json:"event_code,omitempty"` - SiteCode *string `json:"site_code,omitempty"` + SiteCode *string `json:"site_code,omitempty"` } // NewSelfTermsReview instantiates a new SelfTermsReview object @@ -147,5 +147,3 @@ func (v *NullableSelfTermsReview) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_sku.go b/pkg/api/ams/amsclient/model_sku.go similarity index 91% rename from pkg/apis/ams/amsclient/model_sku.go rename to pkg/api/ams/amsclient/model_sku.go index 977664245..40051c9b2 100644 --- a/pkg/apis/ams/amsclient/model_sku.go +++ b/pkg/api/ams/amsclient/model_sku.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,14 +16,14 @@ import ( // SKU struct for SKU type SKU struct { - Href *string `json:"href,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` - Byoc bool `json:"byoc"` - ResourceName *string `json:"resource_name,omitempty"` - ResourceType *string `json:"resource_type,omitempty"` - Resources *[]EphemeralResourceQuota `json:"resources,omitempty"` + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` + Byoc bool `json:"byoc"` + ResourceName *string `json:"resource_name,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` + Resources *[]EphemeralResourceQuota `json:"resources,omitempty"` } // NewSKU instantiates a new SKU object @@ -185,7 +185,7 @@ func (o *SKU) GetByoc() bool { // GetByocOk returns a tuple with the Byoc field value // and a boolean to check if the value has been set. func (o *SKU) GetByocOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Byoc, true @@ -356,5 +356,3 @@ func (v *NullableSKU) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_sku_all_of.go b/pkg/api/ams/amsclient/model_sku_all_of.go similarity index 92% rename from pkg/apis/ams/amsclient/model_sku_all_of.go rename to pkg/api/ams/amsclient/model_sku_all_of.go index 40de6f0cd..3190acd37 100644 --- a/pkg/apis/ams/amsclient/model_sku_all_of.go +++ b/pkg/api/ams/amsclient/model_sku_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,12 +16,12 @@ import ( // SKUAllOf struct for SKUAllOf type SKUAllOf struct { - AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` - Byoc bool `json:"byoc"` - Id *string `json:"id,omitempty"` - ResourceName *string `json:"resource_name,omitempty"` - ResourceType *string `json:"resource_type,omitempty"` - Resources *[]EphemeralResourceQuota `json:"resources,omitempty"` + AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` + Byoc bool `json:"byoc"` + Id *string `json:"id,omitempty"` + ResourceName *string `json:"resource_name,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` + Resources *[]EphemeralResourceQuota `json:"resources,omitempty"` } // NewSKUAllOf instantiates a new SKUAllOf object @@ -87,7 +87,7 @@ func (o *SKUAllOf) GetByoc() bool { // GetByocOk returns a tuple with the Byoc field value // and a boolean to check if the value has been set. func (o *SKUAllOf) GetByocOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Byoc, true @@ -284,5 +284,3 @@ func (v *NullableSKUAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_sku_list.go b/pkg/api/ams/amsclient/model_sku_list.go similarity index 92% rename from pkg/apis/ams/amsclient/model_sku_list.go rename to pkg/api/ams/amsclient/model_sku_list.go index bf1d7d205..3a3886768 100644 --- a/pkg/apis/ams/amsclient/model_sku_list.go +++ b/pkg/api/ams/amsclient/model_sku_list.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,11 +16,11 @@ import ( // 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"` + 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 @@ -58,7 +58,7 @@ func (o *SkuList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *SkuList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *SkuList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *SkuList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *SkuList) GetItems() []SKU { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,5 +220,3 @@ func (v *NullableSkuList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_sku_list_all_of.go b/pkg/api/ams/amsclient/model_sku_list_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_sku_list_all_of.go rename to pkg/api/ams/amsclient/model_sku_list_all_of.go index d21e27f7d..aec570e41 100644 --- a/pkg/apis/ams/amsclient/model_sku_list_all_of.go +++ b/pkg/api/ams/amsclient/model_sku_list_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullableSkuListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_sku_rules.go b/pkg/api/ams/amsclient/model_sku_rules.go similarity index 95% rename from pkg/apis/ams/amsclient/model_sku_rules.go rename to pkg/api/ams/amsclient/model_sku_rules.go index 2608eb33c..265e6008e 100644 --- a/pkg/apis/ams/amsclient/model_sku_rules.go +++ b/pkg/api/ams/amsclient/model_sku_rules.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,12 +16,12 @@ import ( // 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"` + 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"` + Sku *string `json:"sku,omitempty"` } // NewSkuRules instantiates a new SkuRules object @@ -291,5 +291,3 @@ func (v *NullableSkuRules) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_sku_rules_all_of.go b/pkg/api/ams/amsclient/model_sku_rules_all_of.go similarity index 95% rename from pkg/apis/ams/amsclient/model_sku_rules_all_of.go rename to pkg/api/ams/amsclient/model_sku_rules_all_of.go index e80bcf413..177b170b0 100644 --- a/pkg/apis/ams/amsclient/model_sku_rules_all_of.go +++ b/pkg/api/ams/amsclient/model_sku_rules_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,9 +16,9 @@ import ( // SkuRulesAllOf struct for SkuRulesAllOf type SkuRulesAllOf struct { - Allowed *int32 `json:"allowed,omitempty"` + Allowed *int32 `json:"allowed,omitempty"` QuotaId *string `json:"quota_id,omitempty"` - Sku *string `json:"sku,omitempty"` + Sku *string `json:"sku,omitempty"` } // NewSkuRulesAllOf instantiates a new SkuRulesAllOf object @@ -183,5 +183,3 @@ func (v *NullableSkuRulesAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_sku_rules_list.go b/pkg/api/ams/amsclient/model_sku_rules_list.go similarity index 93% rename from pkg/apis/ams/amsclient/model_sku_rules_list.go rename to pkg/api/ams/amsclient/model_sku_rules_list.go index b33eb1f39..c4811674e 100644 --- a/pkg/apis/ams/amsclient/model_sku_rules_list.go +++ b/pkg/api/ams/amsclient/model_sku_rules_list.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // SkuRulesList struct for SkuRulesList type SkuRulesList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []SkuRules `json:"items"` } @@ -58,7 +58,7 @@ func (o *SkuRulesList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *SkuRulesList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *SkuRulesList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *SkuRulesList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *SkuRulesList) GetItems() []SkuRules { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,5 +220,3 @@ func (v *NullableSkuRulesList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_sku_rules_list_all_of.go b/pkg/api/ams/amsclient/model_sku_rules_list_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_sku_rules_list_all_of.go rename to pkg/api/ams/amsclient/model_sku_rules_list_all_of.go index 65b0a9c78..832f419da 100644 --- a/pkg/apis/ams/amsclient/model_sku_rules_list_all_of.go +++ b/pkg/api/ams/amsclient/model_sku_rules_list_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullableSkuRulesListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_subscription.go b/pkg/api/ams/amsclient/model_subscription.go similarity index 94% rename from pkg/apis/ams/amsclient/model_subscription.go rename to pkg/api/ams/amsclient/model_subscription.go index 44ffa503a..02e059876 100644 --- a/pkg/apis/ams/amsclient/model_subscription.go +++ b/pkg/api/ams/amsclient/model_subscription.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,46 +17,46 @@ import ( // Subscription struct for Subscription type Subscription struct { - Href *string `json:"href,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Capabilities *[]Capability `json:"capabilities,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"` - CreatedAt *time.Time `json:"created_at,omitempty"` - Creator *AccountReference `json:"creator,omitempty"` - DisplayName *string `json:"display_name,omitempty"` - ExternalClusterId *string `json:"external_cluster_id,omitempty"` - Labels *[]Label `json:"labels,omitempty"` + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Capabilities *[]Capability `json:"capabilities,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"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Creator *AccountReference `json:"creator,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + ExternalClusterId *string `json:"external_cluster_id,omitempty"` + Labels *[]Label `json:"labels,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"` - Metrics *[]OneMetric `json:"metrics,omitempty"` - NotificationContacts *[]Account `json:"notification_contacts,omitempty"` - OrganizationId *string `json:"organization_id,omitempty"` - Plan *Plan `json:"plan,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"` + LastTelemetryDate *time.Time `json:"last_telemetry_date,omitempty"` + Managed bool `json:"managed"` + Metrics *[]OneMetric `json:"metrics,omitempty"` + NotificationContacts *[]Account `json:"notification_contacts,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + Plan *Plan `json:"plan,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"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - Usage *string `json:"usage,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Usage *string `json:"usage,omitempty"` } // NewSubscription instantiates a new Subscription object @@ -698,7 +698,7 @@ func (o *Subscription) GetManaged() bool { // 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 { + if o == nil { return nil, false } return &o.Managed, true @@ -1369,5 +1369,3 @@ func (v *NullableSubscription) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_subscription_all_of.go b/pkg/api/ams/amsclient/model_subscription_all_of.go similarity index 94% rename from pkg/apis/ams/amsclient/model_subscription_all_of.go rename to pkg/api/ams/amsclient/model_subscription_all_of.go index eacb5ff12..1d205103f 100644 --- a/pkg/apis/ams/amsclient/model_subscription_all_of.go +++ b/pkg/api/ams/amsclient/model_subscription_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,43 +17,43 @@ import ( // SubscriptionAllOf struct for SubscriptionAllOf type SubscriptionAllOf struct { - Capabilities *[]Capability `json:"capabilities,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"` - CreatedAt *time.Time `json:"created_at,omitempty"` - Creator *AccountReference `json:"creator,omitempty"` - DisplayName *string `json:"display_name,omitempty"` - ExternalClusterId *string `json:"external_cluster_id,omitempty"` - Labels *[]Label `json:"labels,omitempty"` + Capabilities *[]Capability `json:"capabilities,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"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Creator *AccountReference `json:"creator,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + ExternalClusterId *string `json:"external_cluster_id,omitempty"` + Labels *[]Label `json:"labels,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"` - Metrics *[]OneMetric `json:"metrics,omitempty"` - NotificationContacts *[]Account `json:"notification_contacts,omitempty"` - OrganizationId *string `json:"organization_id,omitempty"` - Plan *Plan `json:"plan,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"` + LastTelemetryDate *time.Time `json:"last_telemetry_date,omitempty"` + Managed bool `json:"managed"` + Metrics *[]OneMetric `json:"metrics,omitempty"` + NotificationContacts *[]Account `json:"notification_contacts,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + Plan *Plan `json:"plan,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"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - Usage *string `json:"usage,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Usage *string `json:"usage,omitempty"` } // NewSubscriptionAllOf instantiates a new SubscriptionAllOf object @@ -599,7 +599,7 @@ func (o *SubscriptionAllOf) GetManaged() bool { // GetManagedOk returns a tuple with the Managed field value // and a boolean to check if the value has been set. func (o *SubscriptionAllOf) GetManagedOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Managed, true @@ -1261,5 +1261,3 @@ func (v *NullableSubscriptionAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_subscription_create_request.go b/pkg/api/ams/amsclient/model_subscription_create_request.go similarity index 94% rename from pkg/apis/ams/amsclient/model_subscription_create_request.go rename to pkg/api/ams/amsclient/model_subscription_create_request.go index 503b1390b..9f5b8393b 100644 --- a/pkg/apis/ams/amsclient/model_subscription_create_request.go +++ b/pkg/api/ams/amsclient/model_subscription_create_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,11 +16,11 @@ import ( // SubscriptionCreateRequest struct for SubscriptionCreateRequest type SubscriptionCreateRequest struct { - ClusterUuid string `json:"cluster_uuid"` - ConsoleUrl *string `json:"console_url,omitempty"` + 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"` + PlanId string `json:"plan_id"` + Status string `json:"status"` } // NewSubscriptionCreateRequest instantiates a new SubscriptionCreateRequest object @@ -56,7 +56,7 @@ func (o *SubscriptionCreateRequest) GetClusterUuid() string { // 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 { + if o == nil { return nil, false } return &o.ClusterUuid, true @@ -144,7 +144,7 @@ func (o *SubscriptionCreateRequest) GetPlanId() string { // 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 { + if o == nil { return nil, false } return &o.PlanId, true @@ -168,7 +168,7 @@ func (o *SubscriptionCreateRequest) GetStatus() string { // 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 { + if o == nil { return nil, false } return &o.Status, true @@ -234,5 +234,3 @@ func (v *NullableSubscriptionCreateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_subscription_list.go b/pkg/api/ams/amsclient/model_subscription_list.go similarity index 93% rename from pkg/apis/ams/amsclient/model_subscription_list.go rename to pkg/api/ams/amsclient/model_subscription_list.go index baa4394b6..d7536d227 100644 --- a/pkg/apis/ams/amsclient/model_subscription_list.go +++ b/pkg/api/ams/amsclient/model_subscription_list.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,10 +16,10 @@ import ( // SubscriptionList struct for SubscriptionList type SubscriptionList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` Items []Subscription `json:"items"` } @@ -58,7 +58,7 @@ func (o *SubscriptionList) GetKind() string { // 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 { + if o == nil { return nil, false } return &o.Kind, true @@ -82,7 +82,7 @@ func (o *SubscriptionList) GetPage() int32 { // 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 { + if o == nil { return nil, false } return &o.Page, true @@ -106,7 +106,7 @@ func (o *SubscriptionList) GetSize() int32 { // 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 { + if o == nil { return nil, false } return &o.Size, true @@ -130,7 +130,7 @@ func (o *SubscriptionList) GetTotal() int32 { // 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 { + if o == nil { return nil, false } return &o.Total, true @@ -154,7 +154,7 @@ func (o *SubscriptionList) GetItems() []Subscription { // 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 { + if o == nil { return nil, false } return &o.Items, true @@ -220,5 +220,3 @@ func (v *NullableSubscriptionList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_subscription_list_all_of.go b/pkg/api/ams/amsclient/model_subscription_list_all_of.go similarity index 96% rename from pkg/apis/ams/amsclient/model_subscription_list_all_of.go rename to pkg/api/ams/amsclient/model_subscription_list_all_of.go index 2cf5c998d..da3a838a8 100644 --- a/pkg/apis/ams/amsclient/model_subscription_list_all_of.go +++ b/pkg/api/ams/amsclient/model_subscription_list_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullableSubscriptionListAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_subscription_patch_request.go b/pkg/api/ams/amsclient/model_subscription_patch_request.go similarity index 94% rename from pkg/apis/ams/amsclient/model_subscription_patch_request.go rename to pkg/api/ams/amsclient/model_subscription_patch_request.go index 564cfe12d..fb04e1f94 100644 --- a/pkg/apis/ams/amsclient/model_subscription_patch_request.go +++ b/pkg/api/ams/amsclient/model_subscription_patch_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,30 +17,30 @@ import ( // SubscriptionPatchRequest struct for SubscriptionPatchRequest type SubscriptionPatchRequest struct { - 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"` + 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 @@ -940,5 +940,3 @@ func (v *NullableSubscriptionPatchRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_summary.go b/pkg/api/ams/amsclient/model_summary.go similarity index 94% rename from pkg/apis/ams/amsclient/model_summary.go rename to pkg/api/ams/amsclient/model_summary.go index c52bcdf61..bf50591c9 100644 --- a/pkg/apis/ams/amsclient/model_summary.go +++ b/pkg/api/ams/amsclient/model_summary.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,11 +16,11 @@ import ( // Summary struct for Summary type Summary struct { - Href *string `json:"href,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` Metrics []SummaryMetrics `json:"metrics"` - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` } // NewSummary instantiates a new Summary object @@ -150,7 +150,7 @@ func (o *Summary) GetMetrics() []SummaryMetrics { // 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 { + if o == nil { return nil, false } return &o.Metrics, true @@ -248,5 +248,3 @@ func (v *NullableSummary) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_summary_all_of.go b/pkg/api/ams/amsclient/model_summary_all_of.go similarity index 94% rename from pkg/apis/ams/amsclient/model_summary_all_of.go rename to pkg/api/ams/amsclient/model_summary_all_of.go index 13e01b9cf..47f80f8fa 100644 --- a/pkg/apis/ams/amsclient/model_summary_all_of.go +++ b/pkg/api/ams/amsclient/model_summary_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,7 +17,7 @@ import ( // SummaryAllOf struct for SummaryAllOf type SummaryAllOf struct { Metrics []SummaryMetrics `json:"metrics"` - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` } // NewSummaryAllOf instantiates a new SummaryAllOf object @@ -51,7 +51,7 @@ func (o *SummaryAllOf) GetMetrics() []SummaryMetrics { // 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 { + if o == nil { return nil, false } return &o.Metrics, true @@ -140,5 +140,3 @@ func (v *NullableSummaryAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_summary_metrics.go b/pkg/api/ams/amsclient/model_summary_metrics.go similarity index 95% rename from pkg/apis/ams/amsclient/model_summary_metrics.go rename to pkg/api/ams/amsclient/model_summary_metrics.go index 57419ed1d..bc7ad8269 100644 --- a/pkg/apis/ams/amsclient/model_summary_metrics.go +++ b/pkg/api/ams/amsclient/model_summary_metrics.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,7 +16,7 @@ import ( // SummaryMetrics struct for SummaryMetrics type SummaryMetrics struct { - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Vector *[]SummaryVector `json:"vector,omitempty"` } @@ -147,5 +147,3 @@ func (v *NullableSummaryMetrics) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_summary_metrics_all_of.go b/pkg/api/ams/amsclient/model_summary_metrics_all_of.go similarity index 95% rename from pkg/apis/ams/amsclient/model_summary_metrics_all_of.go rename to pkg/api/ams/amsclient/model_summary_metrics_all_of.go index d445501b7..06c40316d 100644 --- a/pkg/apis/ams/amsclient/model_summary_metrics_all_of.go +++ b/pkg/api/ams/amsclient/model_summary_metrics_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,7 +16,7 @@ import ( // SummaryMetricsAllOf struct for SummaryMetricsAllOf type SummaryMetricsAllOf struct { - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Vector *[]SummaryVector `json:"vector,omitempty"` } @@ -147,5 +147,3 @@ func (v *NullableSummaryMetricsAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_summary_vector.go b/pkg/api/ams/amsclient/model_summary_vector.go similarity index 94% rename from pkg/apis/ams/amsclient/model_summary_vector.go rename to pkg/api/ams/amsclient/model_summary_vector.go index 1445db9ea..ac6b149b8 100644 --- a/pkg/apis/ams/amsclient/model_summary_vector.go +++ b/pkg/api/ams/amsclient/model_summary_vector.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,8 +17,8 @@ import ( // SummaryVector struct for SummaryVector type SummaryVector struct { - Time *time.Time `json:"time,omitempty"` - Value *float64 `json:"value,omitempty"` + Time *time.Time `json:"time,omitempty"` + Value *float64 `json:"value,omitempty"` } // NewSummaryVector instantiates a new SummaryVector object @@ -148,5 +148,3 @@ func (v *NullableSummaryVector) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_summary_vector_all_of.go b/pkg/api/ams/amsclient/model_summary_vector_all_of.go similarity index 94% rename from pkg/apis/ams/amsclient/model_summary_vector_all_of.go rename to pkg/api/ams/amsclient/model_summary_vector_all_of.go index f4127b35c..bc0bd40b5 100644 --- a/pkg/apis/ams/amsclient/model_summary_vector_all_of.go +++ b/pkg/api/ams/amsclient/model_summary_vector_all_of.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,8 +17,8 @@ import ( // SummaryVectorAllOf struct for SummaryVectorAllOf type SummaryVectorAllOf struct { - Time *time.Time `json:"time,omitempty"` - Value *float64 `json:"value,omitempty"` + Time *time.Time `json:"time,omitempty"` + Value *float64 `json:"value,omitempty"` } // NewSummaryVectorAllOf instantiates a new SummaryVectorAllOf object @@ -148,5 +148,3 @@ func (v *NullableSummaryVectorAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_support_cases_created_response.go b/pkg/api/ams/amsclient/model_support_cases_created_response.go similarity index 95% rename from pkg/apis/ams/amsclient/model_support_cases_created_response.go rename to pkg/api/ams/amsclient/model_support_cases_created_response.go index 1da7c5572..84dba34f3 100644 --- a/pkg/apis/ams/amsclient/model_support_cases_created_response.go +++ b/pkg/api/ams/amsclient/model_support_cases_created_response.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,15 +16,15 @@ import ( // 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"` + 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"` + Summary *string `json:"summary,omitempty"` + Uri *string `json:"uri,omitempty"` } // NewSupportCasesCreatedResponse instantiates a new SupportCasesCreatedResponse object @@ -399,5 +399,3 @@ func (v *NullableSupportCasesCreatedResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_support_cases_request.go b/pkg/api/ams/amsclient/model_support_cases_request.go similarity index 94% rename from pkg/apis/ams/amsclient/model_support_cases_request.go rename to pkg/api/ams/amsclient/model_support_cases_request.go index 7d9b28ab8..6ff85a233 100644 --- a/pkg/apis/ams/amsclient/model_support_cases_request.go +++ b/pkg/api/ams/amsclient/model_support_cases_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,19 +16,19 @@ import ( // 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"` + 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"` + 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 @@ -232,7 +232,7 @@ func (o *SupportCasesRequest) GetDescription() string { // 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 { + if o == nil { return nil, false } return &o.Description, true @@ -352,7 +352,7 @@ func (o *SupportCasesRequest) GetSeverity() string { // 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 { + if o == nil { return nil, false } return &o.Severity, true @@ -408,7 +408,7 @@ func (o *SupportCasesRequest) GetSummary() string { // 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 { + if o == nil { return nil, false } return &o.Summary, true @@ -530,5 +530,3 @@ func (v *NullableSupportCasesRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_template_parameter.go b/pkg/api/ams/amsclient/model_template_parameter.go similarity index 94% rename from pkg/apis/ams/amsclient/model_template_parameter.go rename to pkg/api/ams/amsclient/model_template_parameter.go index 0865111ca..0fb39b552 100644 --- a/pkg/apis/ams/amsclient/model_template_parameter.go +++ b/pkg/api/ams/amsclient/model_template_parameter.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -17,7 +17,7 @@ import ( // TemplateParameter struct for TemplateParameter type TemplateParameter struct { Content string `json:"content"` - Name string `json:"name"` + Name string `json:"name"` } // NewTemplateParameter instantiates a new TemplateParameter object @@ -52,7 +52,7 @@ func (o *TemplateParameter) GetContent() string { // 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 { + if o == nil { return nil, false } return &o.Content, true @@ -76,7 +76,7 @@ func (o *TemplateParameter) GetName() string { // 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 { + if o == nil { return nil, false } return &o.Name, true @@ -133,5 +133,3 @@ func (v *NullableTemplateParameter) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_terms_review.go b/pkg/api/ams/amsclient/model_terms_review.go similarity index 93% rename from pkg/apis/ams/amsclient/model_terms_review.go rename to pkg/api/ams/amsclient/model_terms_review.go index c44f2f56e..7d5c49fb1 100644 --- a/pkg/apis/ams/amsclient/model_terms_review.go +++ b/pkg/api/ams/amsclient/model_terms_review.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,9 +16,9 @@ import ( // TermsReview struct for TermsReview type TermsReview struct { - AccountUsername string `json:"account_username"` - EventCode *string `json:"event_code,omitempty"` - SiteCode *string `json:"site_code,omitempty"` + AccountUsername string `json:"account_username"` + EventCode *string `json:"event_code,omitempty"` + SiteCode *string `json:"site_code,omitempty"` } // NewTermsReview instantiates a new TermsReview object @@ -52,7 +52,7 @@ func (o *TermsReview) GetAccountUsername() string { // 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 { + if o == nil { return nil, false } return &o.AccountUsername, true @@ -176,5 +176,3 @@ func (v *NullableTermsReview) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_terms_review_response.go b/pkg/api/ams/amsclient/model_terms_review_response.go similarity index 93% rename from pkg/apis/ams/amsclient/model_terms_review_response.go rename to pkg/api/ams/amsclient/model_terms_review_response.go index 7bb71b968..621f1a4bf 100644 --- a/pkg/apis/ams/amsclient/model_terms_review_response.go +++ b/pkg/api/ams/amsclient/model_terms_review_response.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -16,11 +16,11 @@ import ( // 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"` + 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 @@ -57,7 +57,7 @@ func (o *TermsReviewResponse) GetAccountId() string { // 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 { + if o == nil { return nil, false } return &o.AccountId, true @@ -81,7 +81,7 @@ func (o *TermsReviewResponse) GetOrganizationId() string { // 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 { + if o == nil { return nil, false } return &o.OrganizationId, true @@ -137,7 +137,7 @@ func (o *TermsReviewResponse) GetTermsAvailable() bool { // 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 { + if o == nil { return nil, false } return &o.TermsAvailable, true @@ -161,7 +161,7 @@ func (o *TermsReviewResponse) GetTermsRequired() bool { // 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 { + if o == nil { return nil, false } return &o.TermsRequired, true @@ -227,5 +227,3 @@ func (v *NullableTermsReviewResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_token_authorization_request.go b/pkg/api/ams/amsclient/model_token_authorization_request.go similarity index 96% rename from pkg/apis/ams/amsclient/model_token_authorization_request.go rename to pkg/api/ams/amsclient/model_token_authorization_request.go index 613f6313d..10ba27aa0 100644 --- a/pkg/apis/ams/amsclient/model_token_authorization_request.go +++ b/pkg/api/ams/amsclient/model_token_authorization_request.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullableTokenAuthorizationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/model_token_authorization_response.go b/pkg/api/ams/amsclient/model_token_authorization_response.go similarity index 96% rename from pkg/apis/ams/amsclient/model_token_authorization_response.go rename to pkg/api/ams/amsclient/model_token_authorization_response.go index 0af89c61f..3f392306b 100644 --- a/pkg/apis/ams/amsclient/model_token_authorization_response.go +++ b/pkg/api/ams/amsclient/model_token_authorization_response.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -111,5 +111,3 @@ func (v *NullableTokenAuthorizationResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/pkg/apis/ams/amsclient/response.go b/pkg/api/ams/amsclient/response.go similarity index 88% rename from pkg/apis/ams/amsclient/response.go rename to pkg/api/ams/amsclient/response.go index 60a989233..abde7c615 100644 --- a/pkg/apis/ams/amsclient/response.go +++ b/pkg/api/ams/amsclient/response.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. @@ -32,7 +32,7 @@ type APIResponse struct { Payload []byte `json:"-"` } -// NewAPIResponse returns a new APIResponse object. +// NewAPIResponse returns a new APIResonse object. func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} diff --git a/pkg/apis/ams/amsclient/utils.go b/pkg/api/ams/amsclient/utils.go similarity index 98% rename from pkg/apis/ams/amsclient/utils.go rename to pkg/api/ams/amsclient/utils.go index d9b083fd0..c7acb73e4 100644 --- a/pkg/apis/ams/amsclient/utils.go +++ b/pkg/api/ams/amsclient/utils.go @@ -1,10 +1,10 @@ /* -Account Management Service API - -Manage user subscriptions and clusters - -API version: 0.0.1 -*/ + * 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. diff --git a/pkg/apis/apis.go b/pkg/api/apis.go similarity index 100% rename from pkg/apis/apis.go rename to pkg/api/apis.go diff --git a/pkg/apis/rbac/api.go b/pkg/api/rbac/api.go similarity index 100% rename from pkg/apis/rbac/api.go rename to pkg/api/rbac/api.go diff --git a/pkg/apis/rbac/rbacutil/api_util.go b/pkg/api/rbac/rbacutil/api_util.go similarity index 100% rename from pkg/apis/rbac/rbacutil/api_util.go rename to pkg/api/rbac/rbacutil/api_util.go diff --git a/pkg/apis/ams/amsclient/.openapi-generator/VERSION b/pkg/apis/ams/amsclient/.openapi-generator/VERSION deleted file mode 100644 index e230c8396..000000000 --- a/pkg/apis/ams/amsclient/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -5.3.0 \ No newline at end of file From 27f200848a2152a41e9fb3573a8d07f20641b71e Mon Sep 17 00:00:00 2001 From: Enda Phelan Date: Wed, 5 Jan 2022 10:30:41 +0000 Subject: [PATCH 3/4] chore: only install linter when needed --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 465cea326..c58eb9170 100644 --- a/Makefile +++ b/Makefile @@ -91,8 +91,12 @@ generate-modular-docs: generate-docs ## Generate modular command-line reference SRC_DIR=$$(pwd)/docs/commands DEST_DIR=$$(pwd)/dist go run ./cmd/modular-docs .PHONY: generate-modular-docs +I18N_LINTER_DEF := $(shell command -v app-services-go-linter 2> /dev/null) + lint-lang: ## Lint i18n files +ifndef I18N_LINTER_DEF # check if the linter is installed, install it if not go install github.com/redhat-developer/app-services-go-linter/cmd/app-services-go-linter@latest +endif app-services-go-linter -path ./pkg/core/localize/locales ./... .PHONY: lint-lang From 123544df89362ec1e0da665d08c21101fa2a83f2 Mon Sep 17 00:00:00 2001 From: Enda Phelan Date: Wed, 5 Jan 2022 10:47:43 +0000 Subject: [PATCH 4/4] refactor: merge status builder client into command package --- pkg/accountmgmtutil/ams.go | 2 +- pkg/api/rbac/rbacutil/api_util.go | 2 +- pkg/cmd/kafka/create/create.go | 4 +- pkg/cmd/kafka/update/update.go | 4 +- pkg/cmd/status/status.go | 26 ++- .../status.go => cmd/status/statusBuilder.go} | 151 ++++++++++-------- pkg/core/cmdutil/flagutil/completions.go | 5 +- pkg/core/connection/api/api.go | 4 +- .../api/defaultapi/default_client.go | 6 +- .../localize/locales/en/cmd/status.en.toml | 3 + .../svcstatus.go} | 2 +- 11 files changed, 111 insertions(+), 98 deletions(-) rename pkg/{core/status/status.go => cmd/status/statusBuilder.go} (65%) rename pkg/{core/status/instanceStatus.go => svcstatus/svcstatus.go} (97%) diff --git a/pkg/accountmgmtutil/ams.go b/pkg/accountmgmtutil/ams.go index 2f5e86353..cddafdeee 100644 --- a/pkg/accountmgmtutil/ams.go +++ b/pkg/accountmgmtutil/ams.go @@ -6,7 +6,7 @@ import ( "github.com/redhat-developer/app-services-cli/pkg/core/connection" - "github.com/redhat-developer/app-services-cli/pkg/apis/ams/amsclient" + "github.com/redhat-developer/app-services-cli/pkg/api/ams/amsclient" ) func CheckTermsAccepted(ctx context.Context, spec ServiceTermsSpec, conn connection.Connection) (accepted bool, redirectURI string, err error) { diff --git a/pkg/api/rbac/rbacutil/api_util.go b/pkg/api/rbac/rbacutil/api_util.go index b312a0aaa..e5638694f 100644 --- a/pkg/api/rbac/rbacutil/api_util.go +++ b/pkg/api/rbac/rbacutil/api_util.go @@ -3,7 +3,7 @@ package rbacutil import ( "context" - "github.com/redhat-developer/app-services-cli/pkg/apis/rbac" + "github.com/redhat-developer/app-services-cli/pkg/api/rbac" ) // FetchAllUsers retrieves and returns every user within the current user's organization with the applied filters diff --git a/pkg/cmd/kafka/create/create.go b/pkg/cmd/kafka/create/create.go index 5ab94751f..bfab9be0d 100644 --- a/pkg/cmd/kafka/create/create.go +++ b/pkg/cmd/kafka/create/create.go @@ -8,6 +8,7 @@ import ( "time" kafkaFlagutil "github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/flagutil" + "github.com/redhat-developer/app-services-cli/pkg/svcstatus" "github.com/redhat-developer/app-services-cli/pkg/accountmgmtutil" "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil" @@ -22,7 +23,6 @@ import ( "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/spinner" "github.com/redhat-developer/app-services-cli/pkg/core/localize" "github.com/redhat-developer/app-services-cli/pkg/core/logging" - "github.com/redhat-developer/app-services-cli/pkg/core/status" pkgKafka "github.com/redhat-developer/app-services-cli/pkg/kafkautil" kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" @@ -235,7 +235,7 @@ func runCreate(opts *options) error { } }() - for status.IsInstanceCreating(response.GetStatus()) { + for svcstatus.IsInstanceCreating(response.GetStatus()) { time.Sleep(cmdutil.DefaultPollTime) response, httpRes, err = api.KafkaMgmt().GetKafkaById(opts.Context, response.GetId()).Execute() diff --git a/pkg/cmd/kafka/update/update.go b/pkg/cmd/kafka/update/update.go index fcc873ace..b0ebea4ee 100644 --- a/pkg/cmd/kafka/update/update.go +++ b/pkg/cmd/kafka/update/update.go @@ -25,8 +25,8 @@ import ( "github.com/spf13/cobra" "github.com/redhat-developer/app-services-cli/internal/build" - "github.com/redhat-developer/app-services-cli/pkg/apis/rbac" - "github.com/redhat-developer/app-services-cli/pkg/apis/rbac/rbacutil" + "github.com/redhat-developer/app-services-cli/pkg/api/rbac" + "github.com/redhat-developer/app-services-cli/pkg/api/rbac/rbacutil" ) type options struct { diff --git a/pkg/cmd/status/status.go b/pkg/cmd/status/status.go index 17c2002b8..94fa2eef2 100644 --- a/pkg/cmd/status/status.go +++ b/pkg/cmd/status/status.go @@ -11,18 +11,10 @@ import ( "github.com/redhat-developer/app-services-cli/pkg/core/ioutil/iostreams" "github.com/redhat-developer/app-services-cli/pkg/core/localize" "github.com/redhat-developer/app-services-cli/pkg/core/logging" - pkgStatus "github.com/redhat-developer/app-services-cli/pkg/core/status" "github.com/spf13/cobra" ) -const ( - kafkaSvcName = "kafka" - registrySvcName = "service-registry" -) - -var validServices = []string{kafkaSvcName, registrySvcName} - type options struct { IO *iostreams.IOStreams Config config.IConfig @@ -86,18 +78,18 @@ func runStatus(opts *options) error { return err } - pkgOpts := &pkgStatus.Options{ - Config: opts.Config, - Connection: conn, - Logger: opts.Logger, - Services: opts.services, - } - if len(opts.services) > 0 { opts.Logger.Debug(opts.localizer.MustLocalize("status.log.debug.requestingStatusOfServices"), opts.services) } - status, ok, err := pkgStatus.Get(opts.Context, pkgOpts) + statusClient := newStatusClient(&clientConfig{ + config: opts.Config, + connection: conn, + Logger: opts.Logger, + localizer: opts.localizer, + }) + + status, ok, err := statusClient.BuildStatus(opts.Context, opts.services) if err != nil { return err } @@ -114,7 +106,7 @@ func runStatus(opts *options) error { return err } } else { - pkgStatus.Print(stdout, status) + Print(stdout, status) } return nil diff --git a/pkg/core/status/status.go b/pkg/cmd/status/statusBuilder.go similarity index 65% rename from pkg/core/status/status.go rename to pkg/cmd/status/statusBuilder.go index 6b143fafd..c67778f60 100644 --- a/pkg/core/status/status.go +++ b/pkg/cmd/status/statusBuilder.go @@ -9,26 +9,31 @@ import ( "text/tabwriter" "github.com/redhat-developer/app-services-cli/pkg/kafkautil" + "github.com/redhat-developer/app-services-cli/pkg/svcstatus" "github.com/redhat-developer/app-services-cli/pkg/core/config" "github.com/redhat-developer/app-services-cli/pkg/core/connection" + "github.com/redhat-developer/app-services-cli/pkg/core/localize" "github.com/redhat-developer/app-services-cli/pkg/core/logging" - "github.com/redhat-developer/app-services-cli/pkg/serviceregistryutil" - - kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" "github.com/openconfig/goyang/pkg/indent" - srsmgmtv1 "github.com/redhat-developer/app-services-sdk-go/registrymgmt/apiv1/client" ) +const ( + kafkaSvcName = "kafka" + registrySvcName = "service-registry" +) + +var validServices = []string{kafkaSvcName, registrySvcName} + const tagTitle = "title" -type Status struct { - Kafka *KafkaStatus `json:"kafka,omitempty" title:"Kafka"` - Registry *RegistryStatus `json:"registry,omitempty" title:"Service Registry"` +type serviceStatus struct { + Kafka *kafkaStatus `json:"kafka,omitempty" title:"Kafka"` + Registry *registryStatus `json:"registry,omitempty" title:"Service Registry"` } -type KafkaStatus struct { +type kafkaStatus struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Status string `json:"status,omitempty"` @@ -36,71 +41,122 @@ type KafkaStatus struct { FailedReason string `json:"failed_reason,omitempty" title:"Failed Reason"` } -type RegistryStatus struct { +type registryStatus struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Status string `json:"status,omitempty"` RegistryUrl string `json:"registryUrl,omitempty" title:"Registry URL"` } -type Options struct { - Config config.IConfig +type clientConfig struct { + config config.IConfig Logger logging.Logger - Connection connection.Connection + connection connection.Connection + localizer localize.Localizer +} - // request specific services - Services []string +type statusClient struct { + config config.IConfig + Logger logging.Logger + conn connection.Connection + localizer localize.Localizer } -// Get gets the status of all services currently set in the user config -func Get(ctx context.Context, opts *Options) (status *Status, ok bool, err error) { - cfg, err := opts.Config.Load() +// newStatusClient returns a new client to fetch service statuses +// and build it into a service status config object +func newStatusClient(cfg *clientConfig) *statusClient { + return &statusClient{ + config: cfg.config, + Logger: cfg.Logger, + conn: cfg.connection, + localizer: cfg.localizer, + } +} + +// BuildStatus gets the status of all services currently set in the user config +func (c *statusClient) BuildStatus(ctx context.Context, services []string) (status *serviceStatus, ok bool, err error) { + cfg, err := c.config.Load() if err != nil { return nil, false, err } - status = &Status{} - api := opts.Connection.API() + status = &serviceStatus{} - if stringInSlice("kafka", opts.Services) { + if stringInSlice(kafkaSvcName, services) { if instanceID, exists := cfg.GetKafkaIdOk(); exists { // nolint:govet - kafkaStatus, err := getKafkaStatus(ctx, api.KafkaMgmt(), instanceID) + kafkaStatus, err := c.getKafkaStatus(ctx, instanceID) if err != nil { if kafkautil.IsErr(err, kafkautil.ErrorCode7) { err = kafkautil.NotFoundByIDError(instanceID) - opts.Logger.Error(err) - opts.Logger.Info(`Run "rhoas kafka use" to use another Kafka instance.`) + c.Logger.Error(err) + c.Logger.Info(c.localizer.MustLocalize("status.log.info.rhoasKafkaUse")) } } else { status.Kafka = kafkaStatus ok = true } } else { - opts.Logger.Debug("No Kafka instance is currently used, skipping status check") + c.Logger.Debug("No Kafka instance is currently used, skipping status check") } } - if stringInSlice("service-registry", opts.Services) { + if stringInSlice(registrySvcName, services) { registryCfg := cfg.Services.ServiceRegistry if registryCfg != nil && registryCfg.InstanceID != "" { // nolint:govet - registry, newErr := getRegistryStatus(ctx, api.ServiceRegistryMgmt(), registryCfg.InstanceID) + registry, newErr := c.getRegistryStatus(ctx, registryCfg.InstanceID) if newErr != nil { return status, ok, err } status.Registry = registry ok = true } else { - opts.Logger.Debug("No service registry is currently used, skipping status check") + c.Logger.Debug("No service registry is currently used, skipping status check") } } return status, ok, err } +func (c *statusClient) getKafkaStatus(ctx context.Context, id string) (status *kafkaStatus, err error) { + kafkaResponse, _, err := c.conn.API().KafkaMgmt().GetKafkaById(ctx, id).Execute() + if err != nil { + return nil, err + } + + status = &kafkaStatus{ + ID: kafkaResponse.GetId(), + Name: kafkaResponse.GetName(), + Status: kafkaResponse.GetStatus(), + BootstrapServerHost: kafkaResponse.GetBootstrapServerHost(), + } + + if kafkaResponse.GetStatus() == svcstatus.StatusFailed { + status.FailedReason = kafkaResponse.GetFailedReason() + } + + return status, err +} + +func (c *statusClient) getRegistryStatus(ctx context.Context, id string) (status *registryStatus, err error) { + registry, _, err := c.conn.API().ServiceRegistryMgmt().GetRegistry(ctx, id).Execute() + if err != nil { + return nil, err + } + + status = ®istryStatus{ + ID: registry.GetId(), + Name: registry.GetName(), + RegistryUrl: registry.GetRegistryUrl(), + Status: string(registry.GetStatus()), + } + + return status, err +} + // Print prints the status information of all set services -func Print(w io.Writer, status *Status) { +func Print(w io.Writer, status *serviceStatus) { v := reflect.ValueOf(status).Elem() indirectVal := reflect.Indirect(v) @@ -190,45 +246,6 @@ func createDivider(n int) string { return b } -func getKafkaStatus(ctx context.Context, api kafkamgmtclient.DefaultApi, id string) (status *KafkaStatus, err error) { - kafkaResponse, _, err := api.GetKafkaById(ctx, id).Execute() - if kafkautil.IsErr(err, kafkautil.ErrorCode7) { - return nil, kafkautil.NotFoundByIDError(id) - } - if err != nil { - return nil, err - } - - status = &KafkaStatus{ - ID: kafkaResponse.GetId(), - Name: kafkaResponse.GetName(), - Status: kafkaResponse.GetStatus(), - BootstrapServerHost: kafkaResponse.GetBootstrapServerHost(), - } - - if kafkaResponse.GetStatus() == "failed" { - status.FailedReason = kafkaResponse.GetFailedReason() - } - - return status, err -} - -func getRegistryStatus(ctx context.Context, api srsmgmtv1.RegistriesApi, id string) (status *RegistryStatus, err error) { - registry, _, err := serviceregistryutil.GetServiceRegistryByID(ctx, api, id) - if err != nil { - return nil, err - } - - status = &RegistryStatus{ - ID: registry.GetId(), - Name: registry.GetName(), - RegistryUrl: registry.GetRegistryUrl(), - Status: string(registry.GetStatus()), - } - - return status, err -} - func stringInSlice(a string, list []string) bool { for _, b := range list { if b == a { diff --git a/pkg/core/cmdutil/flagutil/completions.go b/pkg/core/cmdutil/flagutil/completions.go index 4bd6b63aa..95215c724 100644 --- a/pkg/core/cmdutil/flagutil/completions.go +++ b/pkg/core/cmdutil/flagutil/completions.go @@ -2,10 +2,11 @@ package flagutil import ( "context" + kafkacmdutil "github.com/redhat-developer/app-services-cli/pkg/kafkautil" - "github.com/redhat-developer/app-services-cli/pkg/apis/rbac" - "github.com/redhat-developer/app-services-cli/pkg/apis/rbac/rbacutil" + "github.com/redhat-developer/app-services-cli/pkg/api/rbac" + "github.com/redhat-developer/app-services-cli/pkg/api/rbac/rbacutil" "github.com/redhat-developer/app-services-cli/pkg/core/cmdutil/factory" "github.com/redhat-developer/app-services-cli/pkg/core/connection" "github.com/spf13/cobra" diff --git a/pkg/core/connection/api/api.go b/pkg/core/connection/api/api.go index 56baac10d..e25f64596 100644 --- a/pkg/core/connection/api/api.go +++ b/pkg/core/connection/api/api.go @@ -1,8 +1,8 @@ package api import ( - "github.com/redhat-developer/app-services-cli/pkg/apis/ams/amsclient" - "github.com/redhat-developer/app-services-cli/pkg/apis/rbac" + "github.com/redhat-developer/app-services-cli/pkg/api/ams/amsclient" + "github.com/redhat-developer/app-services-cli/pkg/api/rbac" kafkainstanceclient "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal/client" kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" registryinstanceclient "github.com/redhat-developer/app-services-sdk-go/registryinstance/apiv1internal/client" diff --git a/pkg/core/connection/api/defaultapi/default_client.go b/pkg/core/connection/api/defaultapi/default_client.go index ed25017f6..57f4154e0 100644 --- a/pkg/core/connection/api/defaultapi/default_client.go +++ b/pkg/core/connection/api/defaultapi/default_client.go @@ -12,11 +12,11 @@ import ( "github.com/redhat-developer/app-services-cli/pkg/kafkautil" "github.com/redhat-developer/app-services-cli/internal/build" - "github.com/redhat-developer/app-services-cli/pkg/apis/ams/amsclient" - "github.com/redhat-developer/app-services-cli/pkg/apis/rbac" + "github.com/redhat-developer/app-services-cli/pkg/api/ams/amsclient" + "github.com/redhat-developer/app-services-cli/pkg/api/rbac" "github.com/redhat-developer/app-services-cli/pkg/core/connection/api" "github.com/redhat-developer/app-services-cli/pkg/core/logging" - svcstatus "github.com/redhat-developer/app-services-cli/pkg/core/status" + "github.com/redhat-developer/app-services-cli/pkg/svcstatus" kafkainstance "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal" kafkainstanceclient "github.com/redhat-developer/app-services-sdk-go/kafkainstance/apiv1internal/client" kafkamgmtclient "github.com/redhat-developer/app-services-sdk-go/kafkamgmt/apiv1/client" diff --git a/pkg/core/localize/locales/en/cmd/status.en.toml b/pkg/core/localize/locales/en/cmd/status.en.toml index 4caeffcea..3b86c81f5 100644 --- a/pkg/core/localize/locales/en/cmd/status.en.toml +++ b/pkg/core/localize/locales/en/cmd/status.en.toml @@ -38,3 +38,6 @@ one = 'No Kafka instance is currently used, skipping status check' [status.log.info.selectAnotherKafka] one = 'Run rhoas kafka use --id=1iSY6RQ3JKI8Q0OTmjQFd3ocFRg to use another Kafka instance.' + +[status.log.info.rhoasKafkaUse] +one = 'Run "rhoas kafka use" to use another Kafka instance.' \ No newline at end of file diff --git a/pkg/core/status/instanceStatus.go b/pkg/svcstatus/svcstatus.go similarity index 97% rename from pkg/core/status/instanceStatus.go rename to pkg/svcstatus/svcstatus.go index a87743f34..d6ceb2c1f 100644 --- a/pkg/core/status/instanceStatus.go +++ b/pkg/svcstatus/svcstatus.go @@ -1,4 +1,4 @@ -package status +package svcstatus type ServiceStatus = string